Created
July 30, 2016 16:31
-
-
Save marcelklehr/c831a5f861bc0a10a58ad3ac7efcae1f to your computer and use it in GitHub Desktop.
Nodist's umbrella against the WebStorm.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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