ubuntu安装vue
来源:互联网 发布:美工穿什么衣服 编辑:程序博客网 时间:2024/06/10 10:00
需要nodejs
我的电脑已经安装nodejs,但是我需要把它升级到最新稳定版
node有一个模块叫n,是专门用来管理Node.js的版本的。首先 安装n模块
npm install-g n
- 第二步,升级
n stable
- 安装vue
sudo npm install -g vue
- 安装vue-cli 命令行工具
npm install -g vue-cli
- 创建一个基于 webpack 模板的新项目
sudo vue init webpack my-project
- 需要进行一些配置,默认回车即可
This will install Vue 2.x version of the template.For Vue 1.x use: vue init webpack#1.0 my-project? Project name my-project? Project description A Vue.js project? Author runoob <test@runoob.com>? Vue build standalone? Use ESLint to lint your code? Yes? Pick an ESLint preset Standard? Setup unit tests with Karma + Mocha? Yes? Setup e2e tests with Nightwatch? Yes vue-cli · Generated "my-project". To get started: cd my-project npm install npm run dev
- 按照上述提示
sudo cd my-project sudo npm install sudo npm run dev
阅读全文
0 1
- ubuntu下安装vue
- ubuntu安装vue
- Ubuntu 安装 Vue.js
- Ubuntu下Vue.js+webpack的安装
- Ubuntu下Vue.js+webpack的安装(nodejs版本纠正)
- Vue安装
- vue安装
- vue安装
- vue安装
- 安装vue
- Vue安装
- vue安装
- 安装vue
- vue-安装
- vue 安装
- vue 安装
- vue 安装
- Vue安装
- 人工智能的可行性分析
- Android校招面试题 —— Android篇
- Android ViewHolder的作用与用法
- LeetCode 231. Power of Two (算法,计算二进制数中1的位数)
- 使用sklearn优雅地进行数据挖掘
- ubuntu安装vue
- Linux修改文件夹及文件权限
- 数据结构(图遍历--广度优先遍历)
- unity网络连接的学习
- leetcode 582. Kill Process
- [bzoj4403]序列统计 Lucas定理
- 使用firewall-cmd命令配置防火墙
- Divide_Two_Integers
- 网易春招面试题--搬砖