NativeScript Sidekick won't run since CLI 3.2.1 update doesn't work

◇◆丶佛笑我妖孽 提交于 2019-12-12 04:43:39

问题


I opened NativeScript Sidekick on my Mac and it updated to the latest version 0.2.5.

It shows a dialog stating I need to update NativeScript CLI to 3.2.1 and the only option is to quit.

I went to Terminal and tried tns update but it won't update to 3.2.1 saying the platforms for 3.2.1 are not available. (I posted to the NativeScript forums and was told that is correct -- the platforms are at 3.2.0 while only the CLI is updated to 3.2.1.)

I also tried tns update 3.2.1 which simply says 3.2.1 platforms are not available.

tns doctor says 3.2.1 update is available.

NativeScript CLI version is 3.2.0 npm version is 5.4.1 node version is 6.11.3

I've tried creating a new project and it gives me the same issues.

How can I update to NativeScript CLI 3.2.1 so that I can run NativeScript Sidekick?


回答1:


Solved over on https://discourse.nativescript.org/t/tns-update-3-2-1-not-working/2766/5

the command tns update will update your project, not CLI. If you want to update CLI do:

npm uninstall -g nativescript
npm clear cache
npm install -g nativescript

The command ths update is currently not working, we’ll investigate.




回答2:


If you are using nvm to manage your NodeJS versions you can try to set the default version to the one that has installed NativeScript CLI. For example if you have NativeScript CLI on NodeJS version 8.9.2, execute:

nvm alias default 8.9.2

To check the packages installed on your active NodeJS version, execute:

npm list -g --depth 0


来源:https://stackoverflow.com/questions/46609321/nativescript-sidekick-wont-run-since-cli-3-2-1-update-doesnt-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!