npm install i18next-conv: Error: Cannot find module 'readable-stream'

我是研究僧i 提交于 2019-12-02 03:17:09

问题


I'm trying to install i18next-conv but, when I run sudo npm install i18next-conv -g, I get this error:

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

Can anyone tell me what can I do to install it?

Thanks!


回答1:


I think this should be solved if you update node.js and possibly npm as well.

Note you can update npm with npm itself via the command:

sudo npm install -g npm



回答2:


What I had to do was update node version from node web page



来源:https://stackoverflow.com/questions/20090548/npm-install-i18next-conv-error-cannot-find-module-readable-stream

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