我剛剛使用 create-react-app 命令創(chuàng)建了一個(gè) React 應(yīng)用程序,并將該應(yīng)用程序命名為react-app。我按照以下步驟操作cd使用進(jìn)入該目錄cd react-app/運(yùn)行npm start命令我遇到了一個(gè)錯(cuò)誤:npm ERR! Missing scripts: startnpm ERR! A complete log of this run can be found in:C:\Users\user\Appdata\Roaming\npm-cache\_logs\2020-11-09T07_00_18_996z-debug.log編輯:這是我的package.json的內(nèi)容:{? "name": "react-app",? "version": "0.1.0",? "private": true,? "dependencies": {? ? "react": "^17.0.1",? ? "react-dom": "^17.0.1",? ? "react-scripts": "4.0.0"? }}將這些腳本添加到我的 package.js 中是有效的,但引發(fā)了另一個(gè)問題。這是片段。
REACT npm 啟動(dòng)命令
狐的傳說
2023-07-20 17:05:33