npm 安装 后,ls 结果 是什么情况?
发布于 7 天前 作者 wdragon1983 201 次浏览 来自 问答

C:\Users\wangbin>npm ls [email protected] 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 ├── [email protected] 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 [email protected] npm ERR! missing: cookie-parser@~1.3.5, required by [email protected] npm ERR! missing: debug@~2.2.0, required by [email protected] npm ERR! missing: express@~4.13.1, required by [email protected] npm ERR! missing: jade@~1.11.0, required by [email protected] npm ERR! missing: morgan@~1.6.1, required by [email protected] npm ERR! missing: serve-favicon@~2.3.0, required by [email protected] npm ERR! extraneous: [email protected] C:\Users\wangbin\node_modules\formidable

2 回复

package.json里面定义了需要这几个包,但是node_modules下面却没有,就提示错误了。 执行以下npm i,然后就好了

搂上是对的

回到顶部