当前位置:网站首页>npm install安装依赖包报错解决方法
npm install安装依赖包报错解决方法
2022-07-03 08:58:00 【吕大娟】
先用npm install --registry=https://registry.npm.taobao.org安装,出现以下问题
查看了解决方法之后,换了这个,然后就好了npm install -g cnpm --registry=http://registry.npm.taobao.org
更新:还是今天嘻嘻嘻嘻
上述的解决方法应该是不对的,那句命令是安装cnpm用的,,,,,,,离了大普了。。。
并且上述命令中的 -g是安装全局的意思(安装在系统中),而我要做的是安装本项目需要的依赖包,装在项目文件夹中,而不是系统中。
附加知识
npm 全局安装的文件位置可以用npm root -g来查看(在命令终端中输入,cmd打开)
新的解决方案
尝试了网上很多解决方法,均未解决问题,包括运行npm run dev启动项目时报错
vue-cli-service’ 不是内部或外部命令,也不是可运行的程序
最后我觉得是不是node.js版本问题,因为从第一步npm install就开始报错了,因此重装了node.js然后安装依赖包就好了!!!!!气死我了(愤怒.jpg)
node.js安装
1、官网下载安装包我是官网
2、下载完之后点击安装,过程一直下一步就可。
3、安装完之后在命令终端查看是否安装成功
输出版本号就是安装成功了
边栏推荐
- AcWing 788. Number of pairs in reverse order
- How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?
- C language programming specification
- Education informatization has stepped into 2.0. How can jnpf help teachers reduce their burden and improve efficiency?
- Summary of methods for counting the number of file lines in shell scripts
- Uc/os self-study from 0
- Format - C language project sub file
- LeetCode 30. 串联所有单词的子串
- Introduction to the usage of getopts in shell
- Gaussian elimination acwing 883 Gauss elimination for solving linear equations
猜你喜欢

Digital statistics DP acwing 338 Counting problem

LeetCode 515. Find the maximum value in each tree row

What are the stages of traditional enterprise digital transformation?

【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points

Save the drama shortage, programmers' favorite high-score American drama TOP10

Solve POM in idea Comment top line problem in XML file

Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)

LeetCode 513. Find the value in the lower left corner of the tree

Just graduate student reading thesis

Complex character + number pyramid
随机推荐
Common DOS commands
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
CSDN markdown editor help document
Common penetration test range
Computing level network notes
Complex character + number pyramid
Six dimensional space (C language)
Too many open files solution
Format - C language project sub file
Tree DP acwing 285 A dance without a boss
Simple use of MATLAB
Slice and index of array with data type
LeetCode 1089. Duplicate zero
What is the difference between sudo apt install and sudo apt -get install?
Character pyramid
AcWing 785. Quick sort (template)
低代码前景可期,JNPF灵活易用,用智能定义新型办公模式
Introduction to the basic application and skills of QT
Save the drama shortage, programmers' favorite high-score American drama TOP10
Uc/os self-study from 0