windows app store to download ubuntu
Shortcuts: win+q
I chose the ubunto 18.04 LTS
version
Open the application error occurs when ubuntu
Open "Windows subsystem for Linux" feature
Shortcuts: win+x a
enter the command line:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Run, follow the prompts to restart the computer
First run ubuntu
Shortcuts: win+q
Search: ubuntu, click Open, is expected to open the first two minutes to initialize, you will be prompted after installation 用户名
and 密码
setup
wsl configuration
Shortcuts: win+r
Command line: wsl
start using
Installation fish
Auto-completion tool
sudo apt-get install fish
Found error, as follows
Baidu a bit and found a need to update the source, that is, enter the following command line
sudo apt-get update
sudo apt-get upgrade
Then continue
sudo apt-get install fish
You can download ...
The default setting shell
isfish
Command Line:
vim ~/.bashrc
Edit the file, and then add a line at the end of
fish
Start again wsl
to enter the fish
Installation nvm
node.js package manager
curl Download:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
or wget:
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
After the installation reboot
在用 curl 下载时,发现以下报错:
OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.gith
Solutions, turn off proxy
After a successful download, execute restart wsl ... nvm --version
view version confirmation download
carried out
source ~/.bashrc
Here I encountered a error
'case' builtin not inside of switch block
Later found to be entering the fish
window, in fact, this is not a mistake, as long as the exit
exit fish
you can use nvm
the
cd
cd home/liujianli
vim .bashrc
Adding environment configuration
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
Configuring here, it should be done
nvm install [node.js的版本号]
You can use node.js
the