search

Home  >  Q&A  >  body text

vue.js - How to use the vue command of vue-cli under linux

Now node and npm commands can be used
Then vue-cli and webpack are installed globally
But the commands cannot be used
Does anyone know how to solve it

给我你的怀抱给我你的怀抱2771 days ago832

reply all(4)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-27 17:46:55

    sudo ln -s /home/aaa/下载/node-v6.10.3-linux-x64/bin/vue /usr/local/bin/vue

    Solved, just point to the environment path

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-27 17:46:55

    1.Install nodejs
    2.npm install vue-cli -g
    3.vue init $project_name

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-27 17:46:55

    It may be that your account does not have enough permissions. I usually switch to root

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-27 17:46:55

    See the official documentation and install it

    reply
    0
  • Cancelreply