vantage-ui-template icon indicating copy to clipboard operation
vantage-ui-template copied to clipboard

npm install fails on Windows cmd

Open ghost opened this issue 7 years ago • 4 comments

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

ghost avatar Jun 07 '17 12:06 ghost

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

jotatoledo avatar Jun 07 '17 13:06 jotatoledo

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

fixed the issue for me

cnrudd avatar Jun 13 '17 03:06 cnrudd

my fix in package.json was:

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

wakjoko avatar Jun 22 '17 02:06 wakjoko

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/

mikehutter avatar Aug 24 '17 15:08 mikehutter