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??
PHP中文网2017-06-28 09:28:58
Open the command line in your project directory and execute npm install
The 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