npm init: For create package.json file which will recode the dependence. npm install: You can also write like: npm i This is a shortcut way to write npm install. For example. we want to install undersocre.js npm install -S underscore The way '-S' wor
1. npm install 提示no such file or directory 缺少package.json 首先初始化, npm init -f 然后安装依赖 npm install formidable --save 即可. 2. 报错 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm network This is a problem related to network connectivity 因为之前更改源为国内阿里云源,