Npm 安装不起作用 [英] Npm Install is not working

查看:55
本文介绍了Npm 安装不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 ubuntu 上安装了 nodejs

node -v v0.10.25npm -v 给出 1.3.10

当我跑步时

 sudo npm install -g或 sudo npm install

<块引用>

它给了我以下错误

1523 错误类型错误:无法读取未定义 1523 的属性最新"下一个错误 (/usr/share/npm/lib/cache.js:687:35) 1523 错误
在/usr/share/npm/lib/cache.js:675:5 1523 错误保存(/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)/usr/lib/nodejs/graceful-fs/polyfills.js:133:7 1523 处的 1523 错误Object.oncomplete (fs.js:107:15) 1524 错误如果您需要帮助,您可以在以下位置报告此日志:

有什么想法吗?

为什么它给我这个错误

谢谢

解决方案

检查您尝试安装的所有软件包.其中一些可能未从 npm 发布.请参阅此问题:https://github.com/npm/npm/issues/4982

I have installed nodejs on ubuntu

node -v v0.10.25

npm -v  gives 1.3.10

when i run

 sudo npm install -g 
or sudo npm install 

it gives me following error

1523 error TypeError: Cannot read property 'latest' of undefined 1523 error at next (/usr/share/npm/lib/cache.js:687:35) 1523 error
at /usr/share/npm/lib/cache.js:675:5 1523 error at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7) 1523 error at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7 1523 error at Object.oncomplete (fs.js:107:15) 1524 error If you need help, you may report this log at:

Any idea ?

why it is giving me this error

Thanks

解决方案

Check all the packages you are trying to install. Some of them might be unpublished from npm. See this issue: https://github.com/npm/npm/issues/4982

这篇关于Npm 安装不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆