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

nvm is not compatible with the npm config "prefix" option: currently set to "" on Mac OX #103049

Closed
aftershock-teial opened this issue Jul 21, 2020 · 6 comments
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@aftershock-teial
Copy link

Latest update broke my ability to use npm from the integrated terminal.

I get this error message:
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run nvm use --delete-prefix v10.13.0 --silent to unset it.

I tried updating these settings, but the error persists. Please advise

"terminal.integrated.shellArgs.osx": ["-l"],

@Tyriar Tyriar closed this as completed Jul 22, 2020
@Tyriar Tyriar added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Jul 22, 2020
@aftershock-teial
Copy link
Author

aftershock-teial commented Jul 22, 2020 via email

@Tyriar
Copy link
Member

Tyriar commented Jul 22, 2020

Issues like this with nvm are related to your environment, you will need to investigate further yourself.

@rublev
Copy link

rublev commented Jul 23, 2020

Issues like this with nvm are related to your environment, you will need to investigate further yourself.

Unacceptable answer TBH. I have the same issue and have been "investigating" for 8 hours now :) I am ready to blow out my brains. What do I do tomorrow? Or the next day? Wait for an update? Use notepad++? My Vscode doesn't work at all for node projects now! I have literally no other solutions. This guy has the same issue.

I have uninstalled node/nvm/npm/homebrew. Reinstalled all and every combination suggested under the sun. I simply can't get node working in my terminal. There is an obvious error somewhere.

image

Cannot find module '"/Users/rublev/Library/Application' - there is a mission "

@aftershock-teial did you get a solution?

@aftershock-teial
Copy link
Author

aftershock-teial commented Jul 23, 2020 via email

@Tyriar
Copy link
Member

Tyriar commented Jul 24, 2020

What happens when you run these in the VS Code terminal and an external terminal where you're not seeing the issue?

echo $PATH # sanitize this if necessary
which node
which npm
which nvm

Does changing terminal.integrated.shellArgs.osx to ["-l"] or [] change this?

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants