Problem running parallelshell Nodejs script

后端 未结 3 793
离开以前
离开以前 2021-01-06 14:49

In my package.json file I have the following scripts:

\"scripts\": {
    \"start\": \"npm run watch:all\",
    \"test\": \"echo \\\"Error: no test specified\         


        
3条回答
  •  余生分开走
    2021-01-06 15:11

    There is a problem with Parallelshell that has to be fixed manually;

    go to the file:

    node_modules/parallelshell/index.js:105
    

    Then change this line:

    cwd: process.versions.node < '8.0.0' ? process.cwd : process.cwd(),
    

    To this:

    cwd: parseInt(process.versions.node) < 8 ? process.cwd : process.cwd(),
    

    It's done!

提交回复
热议问题