当前位置:网站首页>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、安装完之后在命令终端查看是否安装成功
输出版本号就是安装成功了
边栏推荐
- [point cloud processing paper crazy reading classic version 10] - pointcnn: revolution on x-transformed points
- Sword finger offer II 091 Paint the house
- Introduction to the basic application and skills of QT
- LeetCode 1089. 复写零
- Facial expression recognition based on pytorch convolution -- graduation project
- 2022-1-6 Niuke net brush sword finger offer
- 数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
- 常见渗透测试靶场
- 2022-2-13 learning xiangniuke project - version control
- The difference between if -n and -z in shell
猜你喜欢
Digital statistics DP acwing 338 Counting problem
Sword finger offer II 029 Sorted circular linked list
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
Vscode connect to remote server
樹形DP AcWing 285. 沒有上司的舞會
Basic knowledge of network security
LeetCode 30. Concatenate substrings of all words
How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?
Format - C language project sub file
拯救剧荒,程序员最爱看的高分美剧TOP10
随机推荐
我们有个共同的名字,XX工
Debug debugging - Visual Studio 2022
[point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds
状态压缩DP AcWing 291. 蒙德里安的梦想
LeetCode 1089. Duplicate zero
LeetCode 438. Find all letter ectopic words in the string
The less successful implementation and lessons of RESNET
What are the stages of traditional enterprise digital transformation?
Binary tree sorting (C language, char type)
【点云处理之论文狂读前沿版13】—— GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature
Methods of using arrays as function parameters in shell
Use the interface colmap interface of openmvs to generate the pose file required by openmvs mvs
Noip 2002 popularity group selection number
[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs
[point cloud processing paper crazy reading classic version 11] - mining point cloud local structures by kernel correlation and graph pooling
Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)
LeetCode 438. 找到字符串中所有字母异位词
Binary tree sorting (C language, int type)
State compression DP acwing 91 Shortest Hamilton path
Bert install no package metadata was found for the 'sacraments' distribution