-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
chore: try nvm to install node on wsl #2740
chore: try nvm to install node on wsl #2740
Conversation
9febb86
to
9191c8a
Compare
That didn't succeed... https://ci.appveyor.com/project/ljharb/eslint-plugin-import/builds/46531151/job/suaoh4f063ydn60n#L34 wsl : Cloning into '/home/appveyor/.nvm'...
At line:1 char:1
+ wsl curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/master/inst ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Cloning into '/home/appveyor/.nvm'...:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError |
Fails again... https://ci.appveyor.com/project/ljharb/eslint-plugin-import/builds/46533693/job/1kvv7b5dqps3kg5b#L33 bash: line 137: unexpected EOF while looking for matching `}'
bash: line 138: syntax error: unexpected end of file
Command exited with code 2 |
(please keep reusing this PR for future attempts, rather than opening up a new one) That particular failure indicates the script didn't download in its entirety. |
@ljharb I needed to pipe it through I will try to https://ci.appveyor.com/project/ljharb/eslint-plugin-import/builds/46535646/job/evt689nv4sdsfnw2#L77 => Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zprofile, ~/.zshrc, and ~/.profile.
=> Create one of them and run this script again
OR
=> Append the following lines to the correct file yourself:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
746cbb0
to
54d8667
Compare
d25ec10
to
2e5b7bf
Compare
93576ef
to
2ceb469
Compare
2ceb469
to
b6de9c5
Compare
@ljharb But man, was I wrong...
|
Thanks for trying. |
fixes #2737
Try to install node with
nvm
as suggested here:https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl#install-nvm-nodejs-and-npm