在将nodejs更新为最新版本后,在尝试运行npm install安装软件包时总是会出错:
npm WARN registry Using stale data from http://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale package data from http://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code E
我使用的是nvm和最新的稳定节点(16)
$ nvm ls
-> v16.2.0
npm最近强制执行了TLS 1.1和一个关于它的。
根据 npm@latest应该是npm 7。然而,对我来说:
npm install -g npm@latest
npm WARN npm npm does not support Node.js v16.2.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises tha
我试图在Ubuntu (12.04)上安装NPM软件包。我通过安装了和NPM。
我正在尝试将部署到我的服务器上。我从GitHub克隆了应用程序,然后尝试以根用户的身份安装应用程序依赖项:
root@dev:/web/my-application# npm install -g
npm http GET https://registry.npmjs.org/mongoose/2.5.11
npm http GET https://registry.npmjs.org/express/2.5.0
npm http GET https://registry.npmjs.org/ejs/0.6.1
n
我正试图在我的一个文件夹中执行“npm安装”,但我得到了错误代码E403禁忌:
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher
to avoi
我在窗口上安装了节点js,我在运行时创建了一个myapp文件夹:
npm -v或node -v
现在,当我运行npm install socket.io时,两者都在运行ok,这会给出以下错误。
我试图更改ip4设置,但没有成功。
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm- cli.
我正试图在代理的背后运行npm。我已经尝试过直接或通过Authoxy输入代理
npm config set proxy http://localhost:8999
npm config set https-proxy http://localhost:8999
无论我使用哪个代理,在运行npm search时总是会出现相同的错误。
npm info it worked if it ends with ok
npm verb cli [ 'node', '/usr/local/bin/npm', 'search' ]
npm info using
npm软件包安装问题从命令行,几个软件包的一般问题自从节点sass安装尝试没有安装现在它阻止所有的软件包安装发生了什么?? 我已经卸载并重新安装了节点,它仍然阻止npm,而且它非常慢,给我的错误。发生了一些事情,我不知道是什么。 Windows PowerShell
Copyright (C) Microsoft Corporation. Tous droits réservés.
Testez le nouveau système multiplateforme PowerShell https://aka.ms/pscore6
PS C:\Users\opsty> npm -
我在windows 7和Ubuntu19.10上都遇到了这个问题。我刚刚完成了个人电脑的格式化和开发环境的设置。有人能帮忙吗?
节点v12.16.2
npm v6.14.4
npm install -g gatsby-cli
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual versio
在创建新的角应用程序时,在解析“”、"chai":"^3.5'时,我得到了JSON输入的意外结束。我无法弄清楚它为什么会抛出这个异常,因为我以前的角应用程序运行良好。我搜索了这个错误,但没有得到任何解决方案。请帮助我解决这个错误。提前给你一张大谢谢。
下面是我在创建新的角应用程序时遇到的错误。
PS D:\Angular> ng new myApppp
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
CREAT
我已经安装了快车,但它已经不能工作了。当我在终点站输入“快递”时,我会得到:
bash: /usr/local/bin/express: No such file or directory
如果我试着卸载我会得到..。
sudo npm uninstall –g express
npm WARN uninstall not installed in /home/user/expressApps/sausage/node_modules: "–g"
npm WARN uninstall not installed in /home/user/expressApps/sausage