今天安装npm install connect-history-api-fallback --save的时候,安装完运行不了,出现
出现错误
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! project@0.1.0 serve: vue-cli-service serve
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the project@0.1.0 serve 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! /Users/hcj/.npm/_logs/2020-02-24T08_23_26_362Z-debug.log
解决方式:
1、直接删除node_modules文件夹
2、重新安装npm install
就OK了