当前位置:网站首页>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、安装完之后在命令终端查看是否安装成功
输出版本号就是安装成功了
边栏推荐
- In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
- Basic knowledge of network security
- Recommend a low code open source project of yyds
- STM32F103 can learning record
- Facial expression recognition based on pytorch convolution -- graduation project
- 【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
- [point cloud processing paper crazy reading classic version 11] - mining point cloud local structures by kernel correlation and graph pooling
- 【点云处理之论文狂读经典版14】—— Dynamic Graph CNN for Learning on Point Clouds
- 即时通讯IM,是时代进步的逆流?看看JNPF怎么说
- LeetCode 715. Range 模块
猜你喜欢

Tree DP acwing 285 A dance without a boss

我們有個共同的名字,XX工

Gaussian elimination acwing 883 Gauss elimination for solving linear equations

Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code

Install third-party libraries such as Jieba under Anaconda pytorch

【点云处理之论文狂读前沿版12】—— Adaptive Graph Convolution for Point Cloud Analysis

On a un nom en commun, maître XX.

Excel is not as good as jnpf form for 3 minutes in an hour. Leaders must praise it when making reports like this!

传统办公模式的“助推器”,搭建OA办公系统,原来就这么简单!

【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
随机推荐
Discussion on enterprise informatization construction
Install third-party libraries such as Jieba under Anaconda pytorch
【点云处理之论文狂读前沿版11】—— Unsupervised Point Cloud Pre-training via Occlusion Completion
Solve POM in idea Comment top line problem in XML file
【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis
On February 14, 2022, learn the imitation Niuke project - develop the registration function
In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
求组合数 AcWing 886. 求组合数 II
Binary tree sorting (C language, int type)
How to use Jupiter notebook
Introduction to the usage of getopts in shell
状态压缩DP AcWing 91. 最短Hamilton路径
Tag paste operator (#)
LeetCode 57. Insert interval
Using DLV to analyze the high CPU consumption of golang process
LeetCode 508. 出现次数最多的子树元素和
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
LeetCode 871. Minimum refueling times
PIC16F648A-E/SS PIC16 8位 微控制器,7KB(4Kx14)
LeetCode 715. Range module