ฉันตรวจสอบทั้งสองคำสั่งnpm startแล้วและnpm run startทั้งสองทำงานได้อย่างสมบูรณ์ ฉันใช้ create-react-app แต่เพื่อทำการเปลี่ยนแปลงการกำหนดค่าในโมดูล CSS ฉันเรียกใช้npm ejectแต่เกิดข้อผิดพลาด
แต่npm run ejectทำงาน? ฉันสับสนว่าทำไมnpm ejectไม่ทำงาน ฉันสามารถกำหนดค่านี้ได้หรือไม่?
ด้านล่างนี้คือpackage.json:
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}