Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Command succeeds in PowerShell console but fails when executed from ISE - what can it be?

$
0
0

I have a script that automates Node.js application deployment and in the process calls

`npm install`

This command works OK in both cmd.exe and powershell.exe but fails when executed from the script area of the ISE (tried to run it both under standard user and Administrator, the result is the same). The output is then something like:

npm : npm http GET https://github.com/agilio/node-sqlserver-compiled/tarball/master
At line:1 char:1+ npm install+ ~~~~~~~~~~~+ CategoryInfo          : NotSpecified: (npm http GET ht.../tarball/master:String) [], RemoteException+ FullyQualifiedErrorId : NativeCommandError
npm
http
GET
 https://github.com/bnoguchi/everyauth/tarball/express3
npm
http
GET
 https://github.com/agilio/loggly-console/tarball/master
npm
http
200
 https://github.com/agilio/node-sqlserver-compiled/tarball/master
npm
http
200
 https://github.com/agilio/loggly-console/tarball/master
npm
http
200
 https://github.com/bnoguchi/everyauth/tarball/express3
npm
WARN
excluding symbolic link
 test\app.js -> ../example/server.js
Maybe ISE blocks some network communication that the standard console doesn't? My setup is the default one in Windows 8 Pro.


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>