[英]events.js 167 error in React Installation
我正在嘗試在我的 PC 中設置 react。 我已經完成了 reacr 模塊的下載,並開始通過本地服務器運行,這些錯誤發生在我身上。
events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! portfolio@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the portfolio@0.1.0 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\mohin\AppData\Roaming\npm-cache\_logs\2020-03-18T05_50_06_309Z-debug.log
我知道這是本地服務器的簡單錯誤,並嘗試手動打開 index.html 文件,然后它沒有顯示 react 徽標,而是顯示了類似的內容。
請幫助我完成安裝。 npm 安裝錯誤
我猜這是由於 npm 版本不一致。 我刪除了節點模塊並使用npm-install
重新安裝了所有模塊。
從那時起它運行良好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.