当前位置:网站首页>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
边栏推荐
- Transfer the token on the matic-erc20 network to the matic polygon
- Who doesn't want a blog site of their own - build a blog site WordPress
- Inno setup the simplest user-defined interface effect
- Solidy - fallback function - 2 trigger execution modes
- 飞升:基于中文分词器IK-2种自定义热词分词器构建方式showcase & 排坑showtime
- 谁不想要一个自己的博客网站呢 - 搭建博客网站wordpress
- Voting vault: a new primitive for defi and Governance
- Xctf attack and defense world crypto advanced area
- Official win 10 image download
- Vscode configuration proxy
猜你喜欢
MySQL 索引
[deep learning] data segmentation
Leetcode56. consolidation interval
Switch to software testing and report to the training class for 3 months. It's a high paying job. Is it reliable?
Intelligent question - horse racing question
Transfer the token on the matic-erc20 network to the matic polygon
接口中方法详解
【LeetCode】236. Nearest common ancestor of binary tree
MySQL数据库用户管理
At the age of 32, I fell into a middle-aged crisis and finally quit naked...
随机推荐
Summation of basic exercise sequence of test questions
[database] transaction
[exercise] basic practice letter graph of Blue Bridge Cup
MySQL index
Variable parameters of go
MySQL advanced (Advanced SQL statement)
Tornado frame foundation
How does WPS cancel automatic numbering? Four options
Use of tornado template
[openstack]-01- basic introduction
Sword finger offer 29 Print matrix clockwise
requests. The difference between session () sending requests and using requests to send requests directly
1380. lucky numbers in matrices
ES6扩展运算符(...)
Potential bottleneck of redis
网络基础知识
hashlips_ art_ Engine-1.0.6 usage
Create priority queue
Ultra simple STM32 RTC alarm clock configuration
Beauty of Refactoring: when multithreaded batch processing task lifts the beam - Universal scaffold