node.js
来源:互联网 发布:南泥湾种鸦片 知乎 编辑:程序博客网 时间:2024/06/06 14:14
系统 ubuntu 14.04
1、node.js 版本4 安装
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -sudo apt-get install -y nodejs
2、npm升级到3版本 sudo npm install npm -g
3、ant-tool 安装
npm 默认的官方镜像速度缓慢,因此可选择使用国内淘宝的镜像。通过以下命令安装:
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
安装之后,在本文档里面所有出现使用 npm
的地方,你都可以使用 cnpm
代替。
antd-init
sudo npm i antd-init -g
创建项目
然后创建一个空目录,并在里面执行 antd-init
。
$ mkdir blog && cd blog$ antd-init
调试
在项目目录执行 npm run dev
。
构建
理论上,本地只需通过 npm run dev
进行调试即可,无需构建。而实际上,你可能需要观察构建出来的文件是否符合预期。
在项目根目录执行。
$ npm run build
然后在dist目录可以找到构建出来的文件。详细文档参加:http://ant-tool.github.io/atool-build.html
5、Ant Design of React
安装
具体使用参考文档:http://ant.design/docs/react/getting-started$ npm install antd
0 0
- js node
- Node.JS:
- node js
- node.js
- node.js
- node.js
- Node.js
- node.js
- Node.js
- Node.Js
- node js
- Node.js
- node.js
- node.js
- node.js
- node.js
- node.js
- node.js
- 列表、元组以及字符串
- cygwin 2.8.74版本离线包(分别为win7 32和64位)
- xml解析工具类
- #NOIP 2014#day.2 T1 无限网络发射器选址
- 09.树.二叉树
- node.js
- PAT 1020Are They Equal (25)
- 渗透测试攻防练习实验室 (资源分享,国外在线教程)
- 原生js判断浏览器与平台
- 从理论认识J2EE
- cannot resolve corresponding JNI function
- DAY01_Q1
- Http请求util类
- 大话设计模式24----职责链模式