Vue installation scaffolding

1. Based on node environment

   查看node版本: node -V
   查看npm版本:  npm  -V

2. Install vue-cli scaffolding globally

    npm i -g  @vue/cli
    npm uninstall -g @vue/cli

3. Create a scaffolding project

   	 vue create myvue
	 选第三个 Manually select features
	 选择babel  router  vuex,空格选中
	 选择2.x
	 n
	 选择第一个
	 n

4. Run

    $ cd myvue
    $ npm run serve
    访问:localhost:8080

Guess you like

Origin blog.csdn.net/weixin_48466991/article/details/127251846