简体   繁体   English

发生错误后,我正在尝试在本地安装节点。 我多次尝试重新安装节点,但仍然显示错误

[英]I am trying to install node locally following error occurs. I tried reinstalling node several times but still it shows error

I get this error when I try to install node当我尝试安装节点时出现此错误

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2020-08-29T13_30_35_085Z-debug.log
  1. try this first before installing node.在安装节点之前先试试这个。

     sudo npm cache verify sudo npm cache clean --force
  2. After installing verify your installation:安装后验证您的安装:

    node --version节点--版本

several things you can try are following您可以尝试的几件事如下

sudo npm cache clean --force

trying changing ownership of npm and try npm latest尝试更改 npm 的所有权并尝试最新的 npm

sudo chown -R $(whoami) ~/.npm
sudo chown -R $(whoami) /usr/local/lib
sudo chown -R $(whoami) /usr/local/bin
npm install -g npm@latest

give it a try by clearing up the proxy, maybe you're behind proxy通过清除代理来尝试一下,也许你落后于代理

npm config set proxy null
npm config set https-proxy null
npm config set registry http://registry.npmjs.org/

Lately i would like to recommend you to use the NVM package .最近我想推荐你使用NVM package it is not the solution to your answer directly but its a great way to manage and have different node/npm environments https://davidwalsh.name/nvm它不是直接解决您的答案,而是管理和拥有不同节点/npm 环境的好方法https://davidwalsh.name/nvm

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试使用&#39;npm install mongodb&#39;在Windows 8计算机上为Node js Express安装MongoDB,出现以下错误 - I am trying to install MongoDB for a node js express on a Windows 8 machine using 'npm install mongodb', getting following error 我正在创建一个 Node.js 应用程序,我需要安装 ejs,但我无法安装它。 它向我显示以下错误 - I am creating an Node.js app and I need to install ejs but I am unable to install it. It is showing me the following error 我正在尝试使用NPM安装IPFS模块,但出现以下错误 - I am trying to install IPFS module with NPM but getting following error 我正在尝试创建订阅,但发生错误 - I am trying to create a subscription but an error occurs 我正在尝试使用节点npm安装ionic并得到.vcxproj的此错误 - I am trying to install ionic using node npm and getting this error of .vcxproj 我删除了我的节点模块和 package lock.json 并尝试使用 npm install 重新安装它们,但我不断收到此错误 - I deleted my node modules and package lock.json and tried reinstalling them back using npm install but i keep getting this errors 尝试在 Windows 上安装 NPM 包时遇到证书错误。 我正在使用 Node v10.9.0 - I am facing a certificate error while trying to install NPM packages on Windows. I am using Node v10.9.0 我正在尝试安装 angular 8 但它给了我错误我尝试了很多但它不起作用? - I am trying to install angular 8 but it giving me error I tried so much but its not working? 我在节点版本8+中收到以下错误 - I got the following error in node version 8+ 当我尝试在“node.js”中运行这行代码时,我收到以下错误 - When I try to run this line of code in “node.js”, I am getting the following error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM