C:\Users\wangbin>npm ls wangbin@0.0.0 C:\Users\wangbin ├── UNMET DEPENDENCY body-parser@~1.13.2 ├── UNMET DEPENDENCY cookie-parser@~1.3.5 ├── UNMET DEPENDENCY debug@~2.2.0 ├── UNMET DEPENDENCY express@~4.13.1 ├── formidable@1.0.17 extraneous ├── UNMET DEPENDENCY jade@~1.11.0 ├── UNMET DEPENDENCY morgan@~1.6.1 └── UNMET DEPENDENCY serve-favicon@~2.3.0
npm ERR! missing: body-parser@~1.13.2, required by wangbin@0.0.0 npm ERR! missing: cookie-parser@~1.3.5, required by wangbin@0.0.0 npm ERR! missing: debug@~2.2.0, required by wangbin@0.0.0 npm ERR! missing: express@~4.13.1, required by wangbin@0.0.0 npm ERR! missing: jade@~1.11.0, required by wangbin@0.0.0 npm ERR! missing: morgan@~1.6.1, required by wangbin@0.0.0 npm ERR! missing: serve-favicon@~2.3.0, required by wangbin@0.0.0 npm ERR! extraneous: formidable@1.0.17 C:\Users\wangbin\node_modules\formidable
package.json里面定义了需要这几个包,但是node_modules下面却没有,就提示错误了。 执行以下npm i,然后就好了
搂上是对的