$ npm install rrestjs npm http GET http://registry.npmjs.org/rrestjs npm http 304 http://registry.npmjs.org/rrestjs npm http GET http://registry.npmjs.org/formidable/1.0.11 npm http GET http://registry.npmjs.org/jade/0.20.0 npm http GET http://registry.npmjs.org/generic-pool/1.0.6 npm http GET http://registry.npmjs.org/log4js/0.5.6 npm http GET http://registry.npmjs.org/mime/1.2.7 npm http GET http://registry.npmjs.org/mongodb/1.1.6 npm http GET http://registry.npmjs.org/socket.io/0.8.7 npm http GET http://registry.npmjs.org/uglify-js/1.2.5 npm http GET http://registry.npmjs.org/ejs/0.8.2 npm http GET http://registry.npmjs.org/less/1.3.0 npm http GET http://registry.npmjs.org/should/0.6.0 npm http GET http://registry.npmjs.org/now/0.8.1 npm http GET http://registry.npmjs.org/http-proxy/0.8.5 npm http GET http://registry.npmjs.org/request/2.11.4 npm http GET http://registry.npmjs.org/commander/1.0.5 npm http GET http://registry.npmjs.org/xml2js/0.2.3 npm http GET http://registry.npmjs.org/data2xml/0.8.0 npm http GET http://registry.npmjs.org/qs/0.5.1 npm http GET http://registry.npmjs.org/mkdirp/0.3.4 npm http 304 http://registry.npmjs.org/formidable/1.0.11 npm http 304 http://registry.npmjs.org/generic-pool/1.0.6 npm http 304 http://registry.npmjs.org/log4js/0.5.6 npm http 304 http://registry.npmjs.org/jade/0.20.0 npm http 304 http://registry.npmjs.org/mime/1.2.7 npm http 304 http://registry.npmjs.org/uglify-js/1.2.5 npm http 304 http://registry.npmjs.org/mongodb/1.1.6 npm http 304 http://registry.npmjs.org/socket.io/0.8.7 npm http 304 http://registry.npmjs.org/ejs/0.8.2 npm http 304 http://registry.npmjs.org/less/1.3.0 npm http 304 http://registry.npmjs.org/now/0.8.1 npm http 304 http://registry.npmjs.org/should/0.6.0 npm http 304 http://registry.npmjs.org/http-proxy/0.8.5 npm http 304 http://registry.npmjs.org/request/2.11.4 npm http 304 http://registry.npmjs.org/mkdirp/0.3.4 npm http 304 http://registry.npmjs.org/data2xml/0.8.0 npm http 304 http://registry.npmjs.org/qs/0.5.1 npm http 304 http://registry.npmjs.org/xml2js/0.2.3 npm http 304 http://registry.npmjs.org/commander/1.0.5 npm http GET http://registry.npmjs.org/keypress npm http GET http://registry.npmjs.org/sax npm http GET http://registry.npmjs.org/socket.io-client/0.8.7 npm http GET http://registry.npmjs.org/policyfile/0.0.4 npm http GET http://registry.npmjs.org/redis/0.6.7 npm http GET http://registry.npmjs.org/commander npm http 304 http://registry.npmjs.org/keypress npm http GET http://registry.npmjs.org/async/0.1.15 npm http GET http://registry.npmjs.org/bson/0.1.3 npm http 304 http://registry.npmjs.org/sax npm http GET http://registry.npmjs.org/colors npm http GET http://registry.npmjs.org/optimist npm http GET http://registry.npmjs.org/pkginfo npm http GET http://registry.npmjs.org/node-proxy npm http 304 http://registry.npmjs.org/policyfile/0.0.4 npm http 304 http://registry.npmjs.org/commander npm http 304 http://registry.npmjs.org/async/0.1.15 npm http 304 http://registry.npmjs.org/socket.io-client/0.8.7 npm http 304 http://registry.npmjs.org/redis/0.6.7 npm WARN engine commander@0.2.1: wanted: {“node”:">= 0.4.x < 0.7.0"} (current: { “node”:“v0.10.0”,“npm”:“1.2.14”}) npm http 304 http://registry.npmjs.org/bson/0.1.3 npm http 304 http://registry.npmjs.org/optimist npm http 304 http://registry.npmjs.org/pkginfo npm http 304 http://registry.npmjs.org/colors npm http 304 http://registry.npmjs.org/node-proxy npm WARN package.json bson@0.1.3 No README.md file found!
node-proxy@0.6.0 install e:\Node\wujb\node_modules\rrestjs\node_modules\now\no de_modules\node-proxy node-gyp configure build
e:\Node\wujb\node_modules\rrestjs\node_modules\now\node_modules\node-proxy>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\…\node_modules\n ode-gyp\bin\node-gyp.js" configure build npm http GET http://registry.npmjs.org/wordwrap
bson@0.1.3 install e:\Node\wujb\node_modules\rrestjs\node_modules\mongodb\node _modules\bson node install.js
npm http GET http://registry.npmjs.org/websocket-client/1.0.0 npm http GET http://registry.npmjs.org/uglify-js/1.0.6 npm http GET http://registry.npmjs.org/xmlhttprequest/1.2.2
= =
= To install with C++ bson parser do <npm install mongodb --mongodb:native> =
= =
================================================================================
npm http 304 http://registry.npmjs.org/wordwrap
npm http 304 http://registry.npmjs.org/websocket-client/1.0.0
npm http 304 http://registry.npmjs.org/xmlhttprequest/1.2.2
npm http 304 http://registry.npmjs.org/uglify-js/1.0.6
C:\Documents and Settings\Administrator.node-gyp\0.10.0\deps\v8\include\v8.h(1
84): warning C4506: 内联函数“v8::Persistent<T> v8::Persistent<T>::New(v8::Handle
<T>
)”没有定义 [e:\Node\wujb\node_modules\rrestjs\node_modules\now\node_modules\node
-pr
oxy\build\binding.sln]
LINK : fatal error LNK1181: 无法打开输入文件“C:\Documents.obj” [e:\Node\wujb\nod
e_modul
es\rrestjs\node_modules\now\node_modules\node-proxy\build\binding.sln]
项目 : warning PRJ0018: 未找到下列环境变量: [e:\Node\wujb\node_modules\rrestjs\n
ode_module
s\now\node_modules\node-proxy\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:256:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:754:
gyp ERR! System Windows_NT 5.2.3790
gyp ERR! command “node” “c:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js” “configure” "build"
gyp ERR! cwd e:\Node\wujb\node_modules\rrestjs\node_modules\now\node_modules\nod
e-proxy
gyp ERR! node -v v0.10.0
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok
npm ERR! node-proxy@0.6.0 install: node-gyp configure build
npm ERR! cmd "/c" "node-gyp configure build"
failed with 1
npm ERR!
npm ERR! Failed at the node-proxy@0.6.0 install script.
npm ERR! This is most likely a problem with the node-proxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls node-proxy
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 5.2.3790 npm ERR! command “c:\Program Files\nodejs\node.exe” “c:\Program Files\nodej s\node_modules\npm\bin\npm-cli.js” “install” "rrestjs" npm ERR! cwd e:\Node\wujb npm ERR! node -v v0.10.0 npm ERR! npm -v 1.2.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! e:\Node\wujb\npm-debug.log npm ERR! not ok code 0
rrestjs依赖的某些包(bjson?)需要本地编译,windows下怎么本地编译,自行google: windows 本地编译 node.js。
谢谢,我先去Google一下
rrestjs此框架好像不支持Windows
我的就是windows环境
应该是需要你全局安装吧 可以给你的几点建议: 1.要么全局安装 -gd 2.要么对照github把所有单独的依赖包一个个的下载下来进行零配置
楼主,你在windows server 2003搭建nodejs成功了吗? 我碰到一个奇怪的问题,我的nodejs程序可以运行起来,但是在win server 2003进行本地测试,发现访问不到nodejs进程,系统中没有安装IIS,我对win server的系统配置不熟悉,但是怀疑是什么权限问题导致的。请问你是怎么在win server 2003搭建的呢?
windows server 2003 下我使用nginx 和 forever,可以跑起来,跑两周了,还没发现出问题