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

Working with nvm #6

Open
Clan-Utility opened this issue Dec 5, 2019 · 0 comments
Open

Working with nvm #6

Clan-Utility opened this issue Dec 5, 2019 · 0 comments

Comments

@Clan-Utility
Copy link

nvm installed, with the following in ~/.zshrc:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

And settings.json for run-current-test addon:

{
  "runCurrentTest.run": "${workspaceRoot}/node_modules/.bin/mocha ${relativeTestPath} --grep \"${fullTestName}\""
}

But it gives this error:

nvm is not compatible with the npm config "prefix" option: currently set to "/usr/local"
Run npm config delete prefix or nvm use --delete-prefix v12.12.0 --silent to unset it.
/......./node_modules/.bin/mocha test/aaaa.test.js --grep "hello\sshould be ok"
env: node: No such file or directory

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

1 participant