vue安装脚手架

1、基于node环境

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

2、全局下 安装vue-cli脚手架

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

3、创建脚手架项目

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

4、运行

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

猜你喜欢

转载自blog.csdn.net/weixin_48466991/article/details/127251846