npm-programmatic
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -69,4 +69,6 @@ const Promise = require('bluebird'); | ||
exec(cmdString, {cwd: path?path:"/"},(error, stdout, stderr) => { | ||
if (stderr.indexOf("missing")== -1 && stderr.indexOf("required") == -1) { | ||
reject(error); | ||
if(stderr == ""){ | ||
if (stderr.indexOf("missing")== -1 && stderr.indexOf("required") == -1) { | ||
return reject(error); | ||
} | ||
} | ||
@@ -73,0 +75,0 @@ var packages = []; |
{ | ||
"name": "npm-programmatic", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Use NPM commands programmatically", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,3 +0,3 @@ | ||
# npm-programmatic | ||
[](https://travis-ci.org/Manak/npm-programmatic) | ||
# npm-programmatic [](https://travis-ci.org/Manak/npm-programmatic) | ||
[](https://nodei.co/npm/npm-programmatic/) | ||
@@ -4,0 +4,0 @@ npm-programmatic is a library that allows you to access npm commands programmatically from javascript |
9872
196