【发布时间】:2021-10-13 18:03:14
【问题描述】:
> ng serve
sh: ng: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! frontend@0.0.0 start: `ng serve`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the frontend@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional
logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/.npm/_logs/2021-08-09T13_47_00_579Z-debug.log
Process finished with exit code 1
【问题讨论】:
-
您收到一条消息说您想念
node_modules您是否尝试运行npm install?阅读更多关于 npm here
标签: javascript angular npm