Command succeeds in PowerShell console but fails when executed from ISE - what can it be?
i have script automates node.js application deployment , in process calls
`npm install`
this command works ok in both cmd.exe , powershell.exe fails when executed script area of ise (tried run both under standard user , administrator, result same). output like:
npm : npm http https://github.com/agilio/node-sqlserver-compiled/tarball/master @ line:1 char:1 + npm install + ~~~~~~~~~~~ + categoryinfo : notspecified: (npm http ht.../tarball/master:string) [], remoteexception + fullyqualifiederrorid : nativecommanderror npm http https://github.com/bnoguchi/everyauth/tarball/express3 npm http 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.jsmaybe ise blocks network communication standard console doesn't? setup default 1 in windows 8 pro.
hi, i'm trying help.
consider little bat script:
echo off cmd.exe /c "echo some-thing a" cmd.exe /c "echo some-thing b 1>" cmd.exe /c "echo some-thing c" cmd.exe /c "echo some-thing d"
if run script under powershell.exe, little error message may unnoticed.
but if run script under powershell_ise.exe, a big , red colored error message noticed.
if not case, it'd interesting if redirect error output npn.exe.
something : cmd /c 'npm.exe install' 2>>errs.txt
also, consider using /k option.
•
i accept disagree me. however, never, ever, make error again!
louvado seja aquele que criou mulher, o amor, matemática “ e o c++11 ” - após malba tahan
Windows Server > Windows PowerShell
Comments
Post a Comment