我正在尝试安装i18next-conv但是,当我运行sudo npm install i18next-conv -g
时,我收到此错误:
Error: Cannot find module 'readable-stream'
at Function._resolveFilename (module.js:337:11)
at Function._load (module.js:279:25)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:3:48)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Module.require (module.js:359:17)
If you need help, you may report this log at:
<http://github.com/isaacs/npm/issues>
or email it to:
<npm-@googlegroups.com>
System Darwin 11.4.2
command "node" "/usr/local/bin/npm" "install" "i18next-conv" "-g"
cwd /Users/personalcomputer/Desktop
node -v v0.6.18
npm -v 1.3.5
Additional logging details can be found in:
/Users/personalcomputer/Desktop/npm-debug.log
not ok code undefined
not ok code 1
任何人都可以告诉我如何安装它?
谢谢!
答案 0 :(得分:3)
我认为如果你更新node.js并且可能更新npm,也应该解决这个问题。
请注意,您可以使用npm命令更新npm:
sudo npm install -g npm
答案 1 :(得分:1)
我需要做的是从节点网页更新节点版本