node.js - npm failed to exec script on Windows 7 -
i want using npm build tool, watch-and-compile-your-sass-with-npm.
package.json
{ // ... "scripts": { "jojo": "./bin/jojo" }, // ... }
./bin/jojo
echo "test" && exit 1
npm-debug.log
... silly lifecycle workshop@0.0.1~jojo: args: [ '/d /s /c', './scripts/jojo' ] 12 silly lifecycle workshop@0.0.1~jojo: returned: code: 1 signal: null 13 info lifecycle workshop@0.0.1~jojo: failed exec jojo script 14 verbose stack error: workshop@0.0.1 jojo: `./scripts/jojo` 14 verbose stack exit status 1 ...
but in way able run successfully.
{ // ... "scripts": { "jojo": "echo \"test\" && exit 1" }, // ... }
Comments
Post a Comment