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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -