gpt4 book ai didi

node.js - Npm 安装不工作

转载 作者:搜寻专家 更新时间:2023-10-31 23:00:33 24 4
gpt4 key购买 nike

我已经在ubuntu上安装了nodejs

node -v v0.10.25

npm -v gives 1.3.10

当我运行时

 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:

有什么想法吗?

为什么会报错

谢谢

最佳答案

检查您要安装的所有软件包。其中一些可能未从 npm 发布。看到这个问题:https://github.com/npm/npm/issues/4982

关于node.js - Npm 安装不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33117626/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com