项目npm 报错 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] dev: `cross-env PROJECT_NAME

npm 报错

code: 'ENOENT',
errno: 'ENOENT',
path: 'vue-cli-service',
spawnargs: [ 'serve' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `cross-env PROJECT_NAME=index vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Xd\AppData\Roaming\npm-cache\_logs\2020-04-21T03_13_44_250Z-debug.log

解决办法:

试试删除node_model 然后重新 npm i ,然后就ok了,nice

你可能感兴趣的:(项目开发的爬坑记录合集,vue,nodejs,vue)