树莓派Node环境配置

nvm安装

$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ sudo echo "source ~/.nvm/nvm.sh" >> ~/.bashrc && sudo echo "source ~/.nvm/nvm.sh" >> ~/.profile
# zsh
vim .zshrc
# 添加
-------------
# NVM
export NVM_DIR="$HOME/.nvm" # or wherever you've chosen to install it
source "$NVM_DIR/nvm.sh"
-------------

nvm常用命令

nvm ls
nvm ls-remote
nvm install 
nvm use  临时切换版本
nvm uninstall 
nvm alias default  设置默认版本,重新打开shell生效

linux 修改文件、文件夹用户所有者

sudo chgrp -R pi NeteaseCloudMusicApi
sudo chown -R pi NeteaseCloudMusicApi

网易云API
https://github.com/Binaryify/NeteaseCloudMusicApi

你可能感兴趣的:(树莓派Node环境配置)