我在 package.json
中有两个脚本
"start:dev": "nodemon ./src/index.js",
"start": "npm run build && node ./build/index.js",
npm start
运行良好。
我需要运行 "start:dev": "nodemon ./src/index.js"
最佳答案
对于大多数自定义 npm 脚本,您需要在脚本名称前添加 run
npm run start:dev
关于node.js - 如何从 package.json 运行启动脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42312527/