Skip to content

Instantly share code, notes, and snippets.

@marcelklehr
Created July 30, 2016 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelklehr/c831a5f861bc0a10a58ad3ac7efcae1f to your computer and use it in GitHub Desktop.
Save marcelklehr/c831a5f861bc0a10a58ad3ac7efcae1f to your computer and use it in GitHub Desktop.
Nodist's umbrella against the WebStorm.
/**
This is a shim for the npm binary shim of Nodist.
It exists, so that WebStorm is happy.
See https://github.com/marcelklehr/nodist/issues/158
Instructions:
1. Create the following directory: `Nodist\bin\bin`
2. Place this file in the new directory
*/
var child_process = require('child_process')
child_process.spawn(__dirname+'/../npm.exe', process.argv.slice(1))
.on('error', function(er) {
console.log('Sorry. There was a problem with nodist.')
throw er
})
.on('exit', function(code) {
if (code) {
process.exit(code)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment