NodeJSnpm工具介绍和使用
2016-05-24 14:32
609 查看
/**
* Created by cherish on 2016/5/22.
* npm全称:node.js package manager
* npm 本身也是由node.js开发的
*
* curl http://npmjs.org/install.sh|sh --
* 使用这条命令可下载源码并安装
*
* npm --version
*
* 安装模块(必须有网络)
*
* npm install colors 安装颜色
*
* rm -rf node_modules/ 删除node_modules,在cmd中执行
* vim package.json 自己写一个模块 cmd执行
*
* 在package.json中写入:
* {
* "name":"my-npm-test-project",
* "version":"0.0.1",
* "dependencies":{
* "color":"0.5.0"
* }
* }
*
* npm publish my-npm-test-project //将自己的项目上传到服务器中,别人觉得好可以使用
*
*/
require('colors');
console.log("flower smile...".rainbow);//在cmd执行颜色会变成彩色的 node NodeJSnpm工具介绍和使用.js
* Created by cherish on 2016/5/22.
* npm全称:node.js package manager
* npm 本身也是由node.js开发的
*
* curl http://npmjs.org/install.sh|sh --
* 使用这条命令可下载源码并安装
*
* npm --version
*
* 安装模块(必须有网络)
*
* npm install colors 安装颜色
*
* rm -rf node_modules/ 删除node_modules,在cmd中执行
* vim package.json 自己写一个模块 cmd执行
*
* 在package.json中写入:
* {
* "name":"my-npm-test-project",
* "version":"0.0.1",
* "dependencies":{
* "color":"0.5.0"
* }
* }
*
* npm publish my-npm-test-project //将自己的项目上传到服务器中,别人觉得好可以使用
*
*/
require('colors');
console.log("flower smile...".rainbow);//在cmd执行颜色会变成彩色的 node NodeJSnpm工具介绍和使用.js
相关文章推荐
- Node.Js中核心模块之文件系统解析
- go和node.js的对比
- Node.JS核心模块之module分析
- 【nodeJS】webstorm中设置nodej智能提示
- MonoDeveloper在windows下中文显示解决方案
- Node.JS核心模块之全局对象和常用工具
- Node.Js上传图片
- 【leetcode】19. Remove Nth Node From End of List
- 《Nodejs开发加密货币》之十五:加密货币就是货币
- selectNode、selectNodeContents 区别
- LeetCode 116. Populating Next Right Pointers in Each Node(右邻)
- LeetCode 117. Populating Next Right Pointers in Each Node II(右邻)
- task2-nodejs 文件处理cheerio群里有不是本学校的人加入,判断一下
- 读书笔记之《深入浅出Node.js》(1)
- express-session(express4.0与express 3.0的区别)
- Node.js简介
- nodejs完整登陆交互
- nodejs模拟get,post 进行字符统计功能
- Node.js的路由跳转的一点理解
- Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateK