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 in Windows 11 #259

Closed
Riduidel opened this issue Jan 6, 2022 · 2 comments
Closed

npm install fails in Windows 11 #259

Riduidel opened this issue Jan 6, 2022 · 2 comments

Comments

@Riduidel
Copy link

Riduidel commented Jan 6, 2022

I'm trying to start extreme-carpaccio server in Windows 11.

C:\Users\nicolas-delsaux\Documents\open-source\extreme-carpaccio\server>npm install

> extreme-carpaccio-server@1.0.0 postinstall
> node_modules/.bin/bower install

'node_modules' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
npm ERR! code 1
npm ERR! path C:\Users\nicolas-delsaux\Documents\open-source\extreme-carpaccio\server
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node_modules/.bin/bower install

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\nicolas-delsaux\AppData\Local\npm-cache\_logs\2022-01-06T13_12_18_644Z-debug.log

NOTICE in the command trying to be run, the path has forward slashes, which are not compatible with Windows path ... I guess it's a bower bug

@dlresende
Copy link
Owner

What happens when you try to run npm test?

I just realised in server/package.json we've got 2 different notations for scripts: ./node_modules and node_modules. npm test uses the former.

I'm wondering whether Windows would treat both the same way.

Another way to work around this is to replace node_modules/.bin/bower by bower in server/package.json . But that would mean you would have to have bower in the PATH.

@dlresende
Copy link
Owner

#359 should address this issue.

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

2 participants