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

npm install fails on Windows cmd #68

Open
ghost opened this issue Jun 7, 2017 · 4 comments
Open

npm install fails on Windows cmd #68

ghost opened this issue Jun 7, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2017

Bug Report

On Windows, clone the repo and npm i.
Error = '.' is not recognized as an internal or external command,

What is the expected behavior?

Installation works.

What is the motivation / use case for changing the behavior?

Availability to windows users.

Other information

Fix = "webdriver-manager update && bash ./scripts/protractor.sh" in package.json

@jotatoledo
Copy link

Yeah the execution problem is related to the postinstall script in package.json

@cnrudd
Copy link

cnrudd commented Jun 13, 2017

I'm on Windows 10.
Changing postinstall to:
"postinstall": "npm run webdriver-update && bash ./scripts/protractor.sh"

fixed the issue for me

@wakjoko
Copy link

wakjoko commented Jun 22, 2017

my fix in package.json was:

"postinstall": "webdriver-manager update && bash ./scripts/protractor.sh",

@mikehutter
Copy link

I am also on Windows 10 and I tried using the solution proposed by @cnrudd and I got the following:

./scripts/protractor.sh: line 2: $'\r': command not found
: No such file or directoryne 3: cd: ./node_modules/protractor/node_modules
./scripts/protractor.sh: line 4: $'\r': command not found
./scripts/protractor.sh: line 10: syntax error: unexpected end of file

and found the solution to that here:

https://learningintheopen.org/2013/03/07/microsoft-windows-cygwin-error-r-command-not-found/

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

No branches or pull requests

4 participants