debian10安装vue环境, 包括安装node.js

wget https://nodejs.org/download/release/v14.21.3/node-v14.21.3-linux-x64.tar.gz

tar -zxvf node-v14.21.3-linux-x64.tar.gz 

ln -s /work/node-v14.21.3-linux-x64 nodejs

node -v

npm config set prefix /work/node_global

npm config set registry=https://registry.npmmirror.com/

npm config set cache /work/node_cache

npm install -g @vue/cli

export PATH=/work/node_global/lib/node_modules/vue-cli/bin:$PATH

yarn config set registry https://registry.npmmirror.com/

yarn config set cache-folder /work/cache/yarn_cache/

yarn config set global-folder /work/yarn_global/

export PATH=/work/node_global/lib/node_modules/yarn/bin:$PATH

你可能感兴趣的:(vue.js,node.js,前端,npm)