NPM软件包Paralellshell与最新的节点版本不再兼容,因此我想以npm-run-all r的身份移至suggested by the develope。
我的package.json中有这一行,我用npm run dev
执行:
"watch:js": "webpack --config path/webpack.dev.config.js",
"watch:css": "watch \"npm run build:dev:css\" path/scss",
"dev": "parallelshell \"npm run watch:css\" \"npm run watch:js\"",
现在我该如何用npm-run-all编写此命令?
我只是想写:
"dev": "npm-run-all \"npm run watch:css\" \"npm run watch:js\"",
但这会引发错误:
mac:folder用户$ npm运行dev
folder@0.0.0 dev / path
npm-run-all“ npm run watch:css”“ npm run watch:js”
错误:找不到任务:“ npm”
我在这里有点没水了。我该怎么办?
答案 0 :(得分:0)