扫码关注官方订阅号
现在拿到手的是一个没有node_modules的项目,里面有package.json。我如果根据这个文件来恢复node_modules??
Just Run This On Your Terminal
This
npm install
在你项目目录下打开命令行,执行npm install会自动生成node_modules文件。不过我现在一般用cnpm(淘宝镜像),安装速度快一些。如果你想要使用cnpm安装的话,先执行npm install -g cnpm --registry=https://registry.npm.taobao.org然后运行cnpm install
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
Just Run
This
On Your Terminalnpm install
在你项目目录下打开命令行,执行
npm install
会自动生成node_modules文件。不过我现在一般用cnpm(淘宝镜像),安装速度快一些。
如果你想要使用cnpm安装的话,先执行
npm install -g cnpm --registry=https://registry.npm.taobao.org
然后运行
cnpm install