现在拿到手的是一个没有node_modules的项目,里面有package.json。我如果根据这个文件来恢复node_modules??
只需在您的终端上运行This
This
npm 安装
在你项目目录下打开命令行,执行npm install会自动生成node_modules文件。不过我现在一般用cnpm(淘宝镜像),安装速度快一些。如果你想要使用cnpm安装的话,先执行npm install -g cnpm --registry=https://registry.npm.taobao.org然后运行cnpm install
npm install
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install
只需在您的终端上运行
雷雷This
npm 安装
在你项目目录下打开命令行,执行
npm install
会自动生成node_modules文件。不过我现在一般用cnpm(淘宝镜像),安装速度快一些。
如果你想要使用cnpm安装的话,先执行
npm install -g cnpm --registry=https://registry.npm.taobao.org
然后运行
cnpm install