我正在嘗試學習反應,所以我有這個示例代碼為fullstack反應投票應用程序,我試圖讓它工作,但在運行npm install后跟npm start我收到以下錯誤:npm ERR! Darwin 16.4.0npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "server"npm ERR! node v7.5.0npm ERR! npm v4.3.0npm ERR! file shnpm ERR! code ELIFECYCLEnpm ERR! errno ENOENTnpm ERR! syscall spawnnpm ERR! [email protected] server: `live-server --public -- host=localhost --port=3000 --middleware=./disable-browser-cache.js`npm ERR! spawn ENOENTnpm ERR!npm ERR! Failed at the [email protected] server script 'live-server --public --host=localhost --port=3000 --middleware=./disable-browser- cache.js'.npm ERR! Make sure you have the latest version of node.js and npm installed.npm ERR! If you do, this is most likely a problem with the voting_app package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR! live-server --public --host=localhost --port=3000 -- middleware=./disable-browser-cache.jsnpm ERR! You can get information on how to open an issue for this project with:npm ERR! npm bugs voting_appnpm ERR! Or if that isn't available, you can get their info via:npm ERR! npm owner ls voting_appnpm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:npm ERR! /Users/ItsMeMrLi/.npm/_logs/2017-02-17T22_48_03_581Z-debug.lognpm ERR! Darwin 16.4.0npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"npm ERR! node v7.5.0npm ERR! npm v4.3.0npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! [email protected] start: `npm run server`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the [email protected] start script 'npm run server'.npm ERR! Make sure you have the latest version of node.js and npm installed.npm ERR! If you do, this is most likely a problem with the voting_app package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR! npm run server
錯誤的ERR!代碼ELIFECYCLE
寶慕林4294392
2019-08-31 14:40:35