簡體   English   中英

“npm start”不起作用嘗試了“resmon”但在資源監視器中找不到 cmd.exe

[英]"npm start" doesn't work tried "resmon" but couldn't find cmd.exe in the resource monitor

給出的命令:

npx create-react-app my-app

錯誤:

 added 1898 packages from 703 contributors and audited 1901 packages in 251.115s 145 packages are looking for funding run `npm fund` for details found 8 vulnerabilities (4 moderate, 4 high) run `npm audit fix` to fix them, or `npm audit` for details

請檢查所附圖片

錯誤圖像

在您創建 React 應用程序的文件夾中打開 package.json。 並檢查它是否包含:


"scripts": {
    "start": "set PORT=3000 && react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"   },

如果是,則嘗試在 package.json 文件所在的文件夾中運行 npm start 。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM