简体   繁体   English

npm不适用于最新的稳定节点吗?

[英]npm doesn't work with latest stable node?

I am really new to node/npm, but I upgraded my node (I don't even remember why at this point) when I was trying to install a logging solution (which aren't compatible with 0.10 anyway) and now npm doesn't work I get this: 我真的是node / npm的新手,但是当我尝试安装日志记录解决方案(无论如何与0.10都不兼容)时,我升级了我的节点(我什至不记得为什么)。现在npm不工作,我得到这个:

Error: npm doesn't work with node v0.10.26

I didn't find any question or answer to this. 我没有发现任何问题或答案。 Since I can't use npm at all I can't npm upgrade or npm remove. 由于我根本无法使用npm,因此无法进行npm升级或npm删除。 Node is awesome, but it is very confusing sometimes. Node很棒,但是有时候却很混乱。

Thanks! 谢谢!

The latest npm version should always work with the latest stable Node.js version. 最新的npm版本应始终与最新的稳定Node.js版本一起使用。 Update npm as well. 也更新npm。

For the n version manager, the best solution seems to be to reinstall npm from npmjs.org: 对于n版本管理器,最好的解决方案似乎是从npmjs.org重新安装npm:

curl -L https://npmjs.org/install.sh | sh

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM