CleverStack / cleverstack-cli

CLI for CleverStack
http://youtube.com/watch?v=-4ArURHExhQ
MIT License
196 stars 33 forks source link

protractor Mac OS and Ubuntu #85

Open artuan opened 8 years ago

artuan commented 8 years ago

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! angular-seed@1.2.0-rc-2 setup-protractor: grunt webdriver:update npm ERR! Exit status 3 npm ERR! npm ERR! Failed at the angular-seed@1.2.0-rc-2 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! angular-seed@1.2.0-rc-2 setup-protractor: grunt webdriver:update npm ERR! Exit status 3 npm ERR! npm ERR! Failed at the angular-seed@1.2.0-rc-2 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! angular-seed@1.2.0-rc-2 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 angular-seed@1.2.0-rc-2 setup-protractor script. npm ERR! This is most likely a problem with the angular-seed package,

Haw can I solve this? Thank you

pilsy commented 8 years ago

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

artuan commented 8 years ago

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

ilmesi commented 8 years ago

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 commented 8 years ago

Skipping protractor installation (-S) worked for me

pilsy commented 8 years ago

Your welcome @artuan :+1:

@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 commented 8 years ago

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

Unfortunately both solutions are not working :/

`npm run-script setup-protractor

angular-seed@1.2.0-rc-2 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! angular-seed@1.2.0-rc-2 setup-protractor: grunt webdriver:update npm ERR! Exit status 3 npm ERR! npm ERR! Failed at the angular-seed@1.2.0-rc-2 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 commented 8 years ago

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 commented 8 years ago

@pilsy It worked!

Thank you for the support.

fmoliveira commented 8 years ago

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!