vue.js下载依赖包node_modules

 

node_modules   npm 加载的项目依赖模块

 

在很多时候,我们要拷贝或上传一份vue的代码时,通常会删掉依赖包node_modules,
因为这个包太大了,而且,我们运行项目的时候,如果没有依赖包,重新下载依赖包就可以了,很方便的,接下来给大家介绍介绍具体步骤:

1)首先我要把项目中的依赖包(文件夹 node_modules)删掉 。

2)输入命令行:npm install

加载依赖包node_modules ,会根据 package.json 文件来安装。
 等npm install运行结束后,依赖包就已经下载好了。

 

3)可以 npm run dev 来运行vue项目了。

 


————————————————

https://cloud.tencent.com/developer/article/1707936

https://www.cnblogs.com/cisum/p/9413706.html
https://blog.csdn.net/qq_36509946/article/details/118878026

https://blog.csdn.net/qq_36509946/article/details/118878026

posted @ 2022-09-20 20:25  emanlee  阅读(495)  评论(0编辑  收藏  举报