* install (NVM) React Nextjs install ubuntu set environment ### Commands **install nvm** (Node Version Manager) ## 1. install nvm :::success curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash ::: :::danger if can't find curl commands ,install it ::: ``` sudo apt-install curl ``` 此安裝腳本會將 nvm repo clone 到 ~/.nvm,並且將 source line 新增至你的 profile 設定 :::info ``` (~/.bash_profile、 ~/.zshrc、~/.profile 或 ~/.bashrc ): ``` ::: ## 2. restart terminal or source file. if nvm: command not found :::info source ~/.bashrc ::: ## 3. check nvm version :::info nvm --version ::: :::success $ 0.34.0 ::: ## 4. nvm install nodejs methods Install Lastest Version :::info nvm install node ::: Select installation version (exmaple install 8.9.1 Version) :::info nvm install 8.9.1 ::: ## 5. all install version commands all version :::info nvm ls-remote ::: Long-term support Version (LTS) :::info nvm ls-remote -lts ::: ## 6. all (LTS) install Version commands :::info nvm ls ::: ## 7. now use Version commands :::info nvm current ::: :::success $ V21.2.0 ::: ## 8. check install folder commnads :::info nvm which 21.2.0 ::: :::success $ /home/icewindful/.nvm/versions/node/v21.2.0/bin/node ::: ## 9. install broswer debug tools react-developer tools extensions
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up