javascript - How to automatically install packages based on package.json
三叔
三叔 2017-06-28 09:26:58
0
3
664

What I got now is a project without node_modules, but with package.json in it. How can I restore node_modules based on this file??

三叔
三叔

reply all(3)
phpcn_u1582

Just Run This On Your Terminal

npm install 
Ty80

npm install

Ty80

Open the command line in your project directory and execute npm installThe node_modules file will be automatically generated.
But now I usually use cnpm (Taobao mirror), which makes the installation faster.
If you want to use cnpm to install, first execute npm install -g cnpm --registry=https://registry.npm.taobao.org
Then run cnpm install

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!