惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
P
Proofpoint News Feed
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
The Last Watchdog
The Last Watchdog
F
Fortinet All Blogs
S
Schneier on Security
Help Net Security
Help Net Security
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
I
InfoQ
T
The Blog of Author Tim Ferriss
Cisco Talos Blog
Cisco Talos Blog
Stack Overflow Blog
Stack Overflow Blog
T
Troy Hunt's Blog
人人都是产品经理
人人都是产品经理
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
Forbes - Security
Forbes - Security
Vercel News
Vercel News
S
Security Affairs
美团技术团队
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
IT之家
IT之家
U
Unit 42
Recorded Future
Recorded Future
W
WeLiveSecurity
PCI Perspectives
PCI Perspectives
P
Palo Alto Networks Blog
H
Hacker News: Front Page
S
Security @ Cisco Blogs
博客园 - 【当耐特】

博客园 - 浙林龙哥

S3 put object upload file,被AI欺骗的一天 How to get blob data using javascript XmlHttpRequest by sync 咖啡之约--体验 SourceAnywhere 选择沃阁橱柜 ASP.NET 4.0的ClientIDMode=”Static”未必是最好 VS 2010 和 .NET 4.0 系列之《ASP.NET 4 Web Forms 的整洁HTML标识 — 客户端ID》篇 .NET 3.5 Ruby学习1-字符串 ImageMagick 详细安装使用 linux (jmagick) Windows XP 上安装 Bind9 BIND9配置 [javascript] 数组去重问题 [javascript]数组去重 数组A和B找交集 淘宝图片空间---设计师可免费申请短链接啦! php框架 How to use iBatis/NHibernate in medium trust/partial trust environments like Mosso JVM调优 常用的eclipse plugins
安装node.js / npm / express / KMC
浙林龙哥 · 2014-08-26 · via 博客园 - 浙林龙哥

http://www.cnblogs.com/seanlv/archive/2011/11/22/2258716.html

1. 下载Node.js官方Windows版程序:
http://nodejs.org/#download
从0.6.1开始,Node.js在Windows平台上提供了两种安装方式,一是.MSI安装文件,另外还有一个.EXE可执行文件。
我选择了.EXE文件。因为.MSI安装文件除了将node.exe复制到C:\Program File (x86)\目录中及修改系统Path之外,没发现还有其他作用。
我使用的版本为0.6.2: http://nodejs.org/dist/v0.6.2/node.exe

2. 创建D:\nodejs目录,并将node.exe保存在这个目录中。并将"D:\nodejs"加入系统环境变量PATH中,便于在任意位置执行node应用。

3. 下载npm源代码:
https://github.com/isaacs/npm/tags
这里需要注意一下,在写这篇文章时npm最新版本为1.0.106,但是这个最新版本及1.0.105在Windows平台下都有问题。所以我选择了安装1.0.104版本:
https://github.com/isaacs/npm/zipball/v1.0.104

4. 将npm源代码解压到D:\npmjs目录中。
在命令提示符窗口中执行下面的操作,完成npm的安装:

D:\>cd npmjs
D:\npmjs>node cli.js install -gf
另外:

node cli.js install npm -gf //可以安装最新版的NPM
node cli.js install npm@1.0.105 -gf //可以安装指定版本的NPM
上面两种方法都是通过网络从代码库中下载并安装,但是代码库一般只保留最近的两个版本。

5. NPM安装完成后,将"D:\nodejs\node_modules"加入系统环境变量NODE_PATH中。

6. 安装express:

npm install express -gd //安装最新版express
npm install express@2.5.0 //安装指定版本express

npm remove express -g //删除express
更多npm使用方法,请参考npm官方网站:http://npmjs.org


npm install -g express-generator
// express 已经把命令行工具分离出来了...
// http://www.cnblogs.com/dacheng/p/nodejs.html


至此部署完成。

D:\>node -v
v0.6.2

D:\>npm -v
1.0.104


这时我们就着手安装express框架,指令如下:

express blog && cd blog
( blog是安装的文件夹名)

npm install
(安装express及依赖)

npm start
(这里需要注意 express 4.x 无法以 node app.js 为启动方式,而是用指令 npm start 作为启动)

访问 http://localhost:3000/ 出现熟悉的Welcome to Express,证明安装成功。

这时我们就可以尝试4.0的新功能了。

二、安装KMC
https://github.com/daxingplay/grunt-kmc/blob/master/README.md


npm install grunt-kmc -gd