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

chore: try nvm to install node on wsl #2740

Closed

Conversation

AndyOGo
Copy link
Contributor

@AndyOGo AndyOGo commented Mar 17, 2023

@AndyOGo AndyOGo force-pushed the bugfix/try-nvm-to-install-node-on-wsl branch from 9febb86 to 9191c8a Compare March 17, 2023 09:31
@AndyOGo AndyOGo closed this Mar 17, 2023
@AndyOGo
Copy link
Contributor Author

AndyOGo commented Mar 17, 2023

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

Edit:
https://help.appveyor.com/discussions/problems/5413-calling-external-executable-causes-nativecommanderror-despite-no-apparent-error

@AndyOGo AndyOGo reopened this Mar 17, 2023
@AndyOGo AndyOGo closed this Mar 17, 2023
@AndyOGo AndyOGo reopened this Mar 17, 2023
@AndyOGo
Copy link
Contributor Author

AndyOGo commented Mar 17, 2023

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

@AndyOGo AndyOGo closed this Mar 17, 2023
@ljharb
Copy link
Member

ljharb commented Mar 17, 2023

(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.

@AndyOGo AndyOGo reopened this Mar 17, 2023
@AndyOGo
Copy link
Contributor Author

AndyOGo commented Mar 17, 2023

@ljharb I needed to pipe it through dos2unix 🤨

I will try to touch ~/.bash_profile for the next error...

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

@AndyOGo AndyOGo force-pushed the bugfix/try-nvm-to-install-node-on-wsl branch 9 times, most recently from 746cbb0 to 54d8667 Compare March 18, 2023 08:56
@AndyOGo AndyOGo force-pushed the bugfix/try-nvm-to-install-node-on-wsl branch 3 times, most recently from d25ec10 to 2e5b7bf Compare March 18, 2023 09:08
@AndyOGo AndyOGo force-pushed the bugfix/try-nvm-to-install-node-on-wsl branch 25 times, most recently from 93576ef to 2ceb469 Compare March 21, 2023 09:30
@AndyOGo AndyOGo force-pushed the bugfix/try-nvm-to-install-node-on-wsl branch from 2ceb469 to b6de9c5 Compare March 21, 2023 09:32
@AndyOGo AndyOGo closed this Mar 21, 2023
@AndyOGo
Copy link
Contributor Author

AndyOGo commented Mar 21, 2023

@ljharb
Sorry, I give up.
I assumed it would be straight-forward to follow this guide to get node running inside WSL
https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl#install-nvm-nodejs-and-npm

But man, was I wrong...

@ljharb
Copy link
Member

ljharb commented Mar 21, 2023

Thanks for trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

CI WSL Error: Cannot find module 'semver'
2 participants