亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

react error-error: 這可能不是 npm 的問題。上面可能有額外的日志輸出

react error-error: 這可能不是 npm 的問題。上面可能有額外的日志輸出

catspeake 2022-12-08 15:44:24
在我的項目中,我正在使用 React?,F在我要做的是將我在遠程服務器中的項目部署到實際服務器中。我正在使用 npm 創建和啟動一個項目。但是我無法構建我的項目,因為以下錯誤一次又一次地發生,C:\Users\User\react-tutorial>npm start> [email protected] start C:\Users\User\react-tutorial> react-scripts starti ?wds?: Project is running at http://192.168.225.236/i ?wds?: webpack output is served fromi ?wds?: Content not from webpack is served from C:\Users\User\react-tutorial\publici ?wds?: 404s will fallback to /Starting the development server...events.js:292      throw er; // Unhandled 'error' event      ^Error: spawn cmd ENOENT    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)    at onErrorNT (internal/child_process.js:469:16)    at processTicksAndRejections (internal/process/task_queues.js:84:21)Emitted 'error' event on ChildProcess instance at:    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)    at onErrorNT (internal/child_process.js:469:16)    at processTicksAndRejections (internal/process/task_queues.js:84:21) {  errno: 'ENOENT',  code: 'ENOENT',  syscall: 'spawn cmd',  path: 'cmd',  spawnargs: [ '/s', '/c', 'start', '""', '/b', '"http://localhost:3000/"' ]}npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! [email protected] start: `react-scripts start`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the [email protected] start 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\User\AppData\Roaming\npm-cache\_logs\2020-07-27T07_26_30_467Z-debug.log我該如何解決這個問題?編輯:它有效我得到了答案
查看完整描述

1 回答

?
收到一只叮咚

TA貢獻1821條經驗 獲得超5個贊

已經在這里問過

嘗試將 C:\Windows\System32 添加到全局 PATH 環境變量或清除 npm 緩存

npm cache clear --force


查看完整回答
反對 回復 2022-12-08
  • 1 回答
  • 0 關注
  • 345 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號