Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on the post-install script #946

Closed
BishoyDemian opened this issue Jan 28, 2015 · 5 comments
Closed

Issue on the post-install script #946

BishoyDemian opened this issue Jan 28, 2015 · 5 comments

Comments

@BishoyDemian
Copy link

Hi, I'm behind a proxy and get the following error from the post-install script:

C:\some_folder> npm install -g wct-sauce
\

> [email protected] postinstall C:\Users\[user name]AppData\Roaming\npm\node_modules\wct-sauce\node_modules\sauc
e-connect-launcher
> node scripts/install.js

-
> [email protected] postinstall C:\Users\[user name]\AppData\Roaming\npm\node_modules\wct-sauce
> node scripts/postinstall.js

Prefetching the Sauce Connect binary.
Creating directory: C:\Users\[user name]\AppData\Roaming\npm\node_modules\wct-sauce\node_modules\sauce-connect-launcher\sc
Missing Sauce Connect local proxy, downloading dependency
This will only happen once.

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: getaddrinfo ENOTFOUND
    at errnoException (dns.js:37:11)
    at Object.onanswer [as oncomplete] (dns.js:124:16)

npm ERR! [email protected] postinstall: `node scripts/postinstall.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the wct-sauce package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/postinstall.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls wct-sauce
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "-g" "wct-sauce"
npm ERR! cwd C:\some_folder
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
C:\some_folder> sauce-connect-launcher
sauce-connect-launcher : The term 'sauce-connect-launcher' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ sauce-connect-launcher
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (sauce-connect-launcher:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
@BishoyDemian
Copy link
Author

Is it possible to work around this by continuing gracefully if the download did not happen?

@ckortekaas
Copy link

I also get this when running the tests via codeship.io (which is likely also behind a proxy)

@nevir
Copy link
Contributor

nevir commented Feb 4, 2015

Does this still occur for you folk on WCT v2.2.0+?

@ckortekaas
Copy link

All is good for me now (on local or codeship). Thanks!

@nevir
Copy link
Contributor

nevir commented Feb 4, 2015

Glorious!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants