运行项目时,“ npm start”命令在ubantu中不起作用

时间:2019-07-06 11:12:53

标签: angular npm

我已经安装了angular js

npm -v => 6.9.0

npm start给出以下错误

sh: 1: ng: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! angular-io-example@1.0.0 start: `ng serve`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the angular-io-example@1.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/riya/.npm/_logs/2019-07-06T11_06_22_724Z-debug.log

0 个答案:

没有答案
相关问题