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

protractor Mac OS and Ubuntu #85

Open
artuan opened this issue Feb 16, 2016 · 9 comments
Open

protractor Mac OS and Ubuntu #85

artuan opened this issue Feb 16, 2016 · 9 comments
Assignees
Milestone

Comments

@artuan
Copy link

artuan commented Feb 16, 2016

Hello,

I've tried to install clever on mac os El Capitan(10.11.3)
With this error:

Error: Command failed: /bin/sh -c npm run-script setup-protractor
Status @ 2.467m | Installation Progress: [▒▒▒▒▒▒▒▒--] 79 % ┊ Installing: Frontend ┊ Step: Installing protractor (this might take awhile)... ┊ Step Time: 1s ┊ npm ERR! Darwin 15.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "run-script" "setup-protractor"
npm ERR! node v0.12.7
npm ERR! npm v2.12.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] setup-protractor: grunt webdriver:update
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] setup-protractor script 'grunt webdriver:update'.
npm ERR! This is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt webdriver:update
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-seed
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/miha/Documents/tmp/my-app/frontend/my-app/frontend/npm-debug.log

Error: Command failed: /bin/sh -c npm run-script setup-protractor

npm ERR! Darwin 15.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "run-script" "setup-protractor"
npm ERR! node v0.12.7
npm ERR! npm v2.12.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] setup-protractor: grunt webdriver:update
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] setup-protractor script 'grunt webdriver:update'.
npm ERR! This is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt webdriver:update
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-seed
npm ERR! There is likely additional logging output above.

Then I tried install cleaver on ubuntu server also without success.

Error:

Error: Command failed:
npm ERR! [email protected] setup-protractor: grunt webdriver:updateling: Frontend ┊ Step: Installing protractor (this might take awhile)... ┊ Step Time: 3s ┊ npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] setup-protractor script.
npm ERR! This is most likely a problem with the angular-seed package,

Haw can I solve this?
Thank you

@pilsy
Copy link
Contributor

pilsy commented Feb 16, 2016

Thanks for reporting this, i'll take a look at it tomorrow for you

@pilsy pilsy self-assigned this Feb 16, 2016
@pilsy pilsy added this to the 1.x.x milestone Feb 16, 2016
@artuan
Copy link
Author

artuan commented Feb 17, 2016

@pilsy I discovered clever yesterday and I would like to start my new project with it..
thank you!

@ilmesi
Copy link

ilmesi commented Feb 25, 2016

Same issue on OS X 10.11.1.
node v4.3.1
npm 2.14.12
grunt-cli v0.1.13
grunt v0.4.5

@ilmesi
Copy link

ilmesi commented Feb 25, 2016

Skipping protractor installation (-S) worked for me

@pilsy
Copy link
Contributor

pilsy commented Feb 26, 2016

Your welcome @artuan 👍

@ilmesi That is spot on, and usually something that i do anyway (since Protractor is the last step in the installation/init process even when Protractor installation fails everything is still technically fully setup and ready to go)

@artuan Are you by any chance behind a proxy? if so you might need to set your HTTP_PROXY and HTTPS_PROXY environment variables? If it's not that i would suggest running npm run-script setup-protractor from inside your frontend folder... If that doesn't work, run grunt webdriver:update directly in your frontend directory

@artuan
Copy link
Author

artuan commented Mar 16, 2016

@pilsy
Thank you for your help, I apologize for the late response.

Unfortunately both solutions are not working :/

`npm run-script setup-protractor

[email protected] setup-protractor /Users/artuan/Documents/test/my-app/frontend
grunt webdriver:update

Loading "Gruntfile.js" tasks...ERROR

Error: Cannot find module 'utils'
Warning: Task "webdriver:update" not found. Use --force to continue.

Aborted due to warnings.

npm ERR! Darwin 15.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "run-script" "setup-protractor"
npm ERR! node v0.12.7
npm ERR! npm v3.7.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] setup-protractor: grunt webdriver:update
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] setup-protractor script 'grunt webdriver:update'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt webdriver:update
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-seed
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-seed
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/artuan/Documents/test/my-app/frontend/npm-debug.log
Artuan-iMac:frontend artuan$ grunt webdriver:update
Loading "Gruntfile.js" tasks...ERROR

Error: Cannot find module 'utils'
Warning: Task "webdriver:update" not found. Use --force to continue.

Aborted due to warnings.`

@pilsy
Copy link
Contributor

pilsy commented Mar 17, 2016

The "Cannot find module 'utils'" error is caused by not setting your NODE_PATH, take a look at http://cleverstack.io/documentation/backend/#setting-your-node-path

@artuan
Copy link
Author

artuan commented Mar 17, 2016

@pilsy It worked!

Thank you for the support.

@fmoliveira
Copy link

As @artuan have mentioned, setting the NODE_PATH worked for me as well. Perhaps the cleverstack-cli needs a tweak to set this environment variable when running the clever init command, thus, avoiding this error?

PS: I've asked a question in this issue, but I've already removed it because I've gotten its answer from reading the docs, by understanding stuff behind the hood of CleverStack. Thank you @pilsy for this great work, I'm doing my best to learn to use it properly!

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