I am currently attempting to migrate my vue-cli project to typescript. According to this resource, all I need to do is execute the following command:
vue add typescript
My project is being run on a Windows machine using Git Bash
However, when I try to run the command, I encounter the following error:
📦 Installing vue-cli-plugin-typsecript...
yarn add v1.22.17 [1/4] Resolving packages... info If you think this is a bug, please open a bug report with the information provided in info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. error An unexpected error occurred: "https://registry.npmjs.org/vue-cli-plugin-typsecript: Not found".
ERROR command failed: yarn add vue-cli-plugin-typsecript -D --tilde
Upon inspecting the error log, it indicates that:
> Trace: Error: https://registry.npmjs.org/vue-cli-plugin-typsecript:
> Not found
> at Request.params.callback [as _callback] (...\npm\node_modules\yarn\lib\cli.js:67029:18)
> at Request.self.callback (...\npm\node_modules\yarn\lib\cli.js:140883:22)
> at Request.emit (events.js:314:20)
> at Request.<anonymous> (...\npm\node_modules\yarn\lib\cli.js:141855:10)
> at Request.emit (events.js:314:20)
> at IncomingMessage.<anonymous> (...\npm\node_modules\yarn\lib\cli.js:141777:12)
> at Object.onceWrapper (events.js:420:28)
> at IncomingMessage.emit (events.js:326:22)
> at endReadableNT (_stream_readable.js:1223:12)
> at processTicksAndRejections (internal/process/task_queues.js:84:21)
I have tried various solutions found online, such as visiting this link, but unfortunately, none of them have resolved the issue. In addition, I attempted:
- Upgrading yarn
- Removing node modules
- Removing yarn.lock
Despite these efforts, the problem persists. Does anyone have suggestions on how to tackle this challenge?