当前位置:网站首页>Common NPM install errors
Common NPM install errors
2022-06-30 06:03:00 【Handsome big black】
Commonly used npm command :https://www.runoob.com/nodejs/nodejs-npm.html
npm file : Chinese document
error 1: ERR: Please try running this command again as root/Administrator
explain : Prompt to reinstall as Administrator , There is talk on the Internet about clearing the cache , Try and it won't work .
solve : Direct reinstallation ( Mostly because of the Internet )
Or login user ( Try sometimes ) reinstall
>npm login
Username: test
Password: ******
Email: *******
>npm install --save module
tip: If the installation still reports an error after logging in , Just try a few more times , Poor network may also lead to installation failure .( The error prompt is to let you reinstall )
error 2: ERR! network ‘proxy’ config is set properly
Incorrect translation of original text : If there is an agent, configure it correctly .

solve : We don't use proxy to set it to null.
>npm config set proxy null
>npm config set https-proxy null
Set both agents to null That's all right. .
You can also find the configuration file .npmrc Modify in process .
error 3: npm publish
ERR! You cannot publish over the previously published versions
err: You cannot publish on a previously released version . Change the version number every time you publish , To be modified version
npm config get registry // see
npm config set registry=http://registry.npmjs.org // npm Mirror image
npm config set registry=https://registry.npm.taobao.org/ // Taobao mirror
npm config list // View the configuration to see the configuration directory : userconfig C:\Users\Administrator\.npmrc
If the current Taobao image release is unsuccessful
Switch npm config set registry=http://registry.npmjs.org
Then release . Make sure you are logged in .
error 4: npm Start project
ERR! webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
ERR! This is probably not a problem with npm. There is likely additional logging output above.
solve : Clear cache , Reinstall dependency .
Delete node_modules and package-lock.json file
npm cache Introduce
>npm cache clear --force
>npm install
边栏推荐
- [regular expression series] greedy and non greedy patterns
- MySQL advanced SQL statement
- Shenzhou ares tx6 boot logo modification tutorial
- Variable parameters of go
- Projet Web de déploiement du serveur Cloud
- Leetcode search insert location
- UE4_ Editor development: highlight the UI making method according to the assets dragged by the mouse (1)
- ES6解构赋值
- [database] transaction
- English grammar_ Adjective / adverb Level 3 - superlative
猜你喜欢

ECS deployment web project

Xctf attack and defense world crypto advanced area

Leetcode search insert location

Summation of basic exercise sequence of test questions

SparseArray

What do you think of the deleted chat records? How to restore the deleted chat records on wechat?

Summary of redis learning notes (I)

Official win 10 image download
![[ansible series] fundamentals -01](/img/b4/1f3284338c75acb5259849a45bbfbe.jpg)
[ansible series] fundamentals -01

Mysql database learning notes - foreign keys, table connections, subqueries, and indexes for MySQL multi table queries
随机推荐
重构之美:当多线程批处理任务挑起大梁 - 万能脚手架
Mysql database user management
1380. lucky numbers in matrices
Attempt to redefine 'timeout' at line 2 solution
Do you know how to show the health code in only 2 steps
Es6数组
InputStream to inputstreamsource
【数据库】事务
VLAN access mode
1380. lucky numbers in matrices
多线程进阶篇
网络基础知识
Summation of basic exercise sequence of test questions
8 ways to earn passive income
What do you think of the deleted chat records? How to restore the deleted chat records on wechat?
[untitled] user defined function
ES6箭头函数
luoguP2756 飞行员配对方案问题(最大流)
MySQL index
【学习强化学习】总目录