我一直在尝试使用以下命令安装NativeScript的“下一个”版本。尝试安装NativeScript的“下一个”版本的npm错误
npm install -g [email protected]
的问题是,我得到以下错误:
npm ERR! Refusing to delete /usr/local/bin/tns: ../lib/node_modules/nativescript/bin/nativescript.js symlink target is not controlled by npm /usr/local
npm ERR! File exists: /usr/local/bin/tns
npm ERR! Move it away, and try again.
任何人都知道可能是什么呢?我试着运行npm uninstall -g nativescript
并重新安装,但我最终遇到了同样的问题。
任何帮助,将不胜感激。谢谢!
保证是'rwxr-xr-x'。奇怪的是,如果我通过'npm uninstall'卸载'/ usr/local/bin/tns'文件不再存在,这让我认为这不是一个权限问题。我绝对可能是错的。 –
另外'tns install -g nativescript'可以正常工作。这只是'tns install -g nativescript @ next'失败,这意味着这可能是CLI本身的问题。 –