Now node and npm commands can be usedThen vue-cli and webpack are installed globallyBut the commands cannot be usedDoes anyone know how to solve it
sudo ln -s /home/aaa/下载/node-v6.10.3-linux-x64/bin/vue /usr/local/bin/vue
Solved, just point to the environment path
1.Install nodejs2.npm install vue-cli -g3.vue init $project_name
It may be that your account does not have enough permissions. I usually switch to root
See the official documentation and install it
sudo ln -s /home/aaa/下载/node-v6.10.3-linux-x64/bin/vue /usr/local/bin/vue
Solved, just point to the environment path
1.Install nodejs
2.npm install vue-cli -g
3.vue init $project_name
It may be that your account does not have enough permissions. I usually switch to root
See the official documentation and install it