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

Can't set NPM_BIN_PATH on Windows #7

Closed
rasulkireev opened this issue Nov 15, 2019 · 2 comments
Closed

Can't set NPM_BIN_PATH on Windows #7

rasulkireev opened this issue Nov 15, 2019 · 2 comments

Comments

@rasulkireev
Copy link

After getting info on where the npm is stored by executing where npm on Windows, I gotthe information that the path is located at C:\Program Files\nodejs\npm & C:\Program Files\nodejs\npm.cmd. Putting this information to settings.py does not do anything, I still get the

CommandError:
It looks like node.js and/or npm is not installed or cannot be found.

I have tried the following:
NPM_BIN_PATH = C:\Program Files\nodejs\npm
NPM_BIN_PATH = "'Program Files'\nodejs\npm"
NPM_BIN_PATH = "Program Files\nodejs\npm"
NPM_BIN_PATH = C:/Program Files/nodejs/npm
NPM_BIN_PATH = "'Program Files'/nodejs/npm"
NPM_BIN_PATH = "Program Files/nodejs/npm"

Nothing seems to work. Any suggestions?
Thanks a ton in advance.

@JoshDollinger
Copy link

Hey, was having the same issues myself. Just tried NPM_BIN_PATH = r"C:\Program Files\nodejs\npm.cmd" and that seemed to work for me

@timonweb
Copy link
Owner

@rasulkireev probably the answer above is the solution, I don't have Windows so can't verify.

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

3 participants