kissy-node run on windows解决方案,contextify nodejs windows solution
2012-01-21 22:24
471 查看
环境:win node v0.6.6 win7 64x
今天安装kissy的node版本时发现,依赖报错
报错代码:
于是查询了好多资料,总结如下:
主要是jsdom依赖的contextify是linux的native code,必须在win下重新编译,所以光npm install contextify是不行的
解决方案:
1、下载别人编译的contextify的zip包,https://github.com/Benvie/contextify/zipball/master
将内容保存到node_modules目录中,改名为contextify
2、安装vcredist_x86,下载地址:http://www.microsoft.com/download/en/details.aspx?id=5555
以上方案参考了https://github.com/brianmcd/contextify/issues/12和https://github.com/tmpvar/jsdom/issues/378
今天安装kissy的node版本时发现,依赖报错
报错代码:
node-waf was unexpected at this time. npm ERR! error installing contextify@0.0.7 npm ERR! error installing jsdom@0.2.10 npm ERR! Error: ENOENT, no such file or directory 'D:\node.js\node_modules\jsdom \node_modules_cssom.npm\package\comments.js' npm ERR! Report this entire log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com npm ERR! npm ERR! System Windows_NT 6.1.7600 npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "jsdom" npm ERR! cwd D:\node.js npm ERR! node -v v0.6.6 npm ERR! npm -v 1.1.0-beta-4 npm ERR! path D:\node.js\node_modules\jsdom\node_modules_cssom.npm\package\co mments.js npm ERR! fstream_path D:\node.js\node_modules\jsdom\node_modules_cssom.npm\pa ckage\comments.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! message ENOENT, no such file or directory 'D:\node.js\node_modules\jsdo m\node_modules_cssom.npm\package\comments.js' npm ERR! fstream_stack Object.oncomplete (C:\Program Files\nodejs\node_modules\n pm\node_modules\fstream\lib\writer.js:204:26) npm ERR! Error: ENOENT, no such file or directory 'D:\node.js\node_modules\jsdom \node_modules_request.npm\package\tests\test-body.js' npm ERR! Report this entire log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com npm ERR! npm ERR! System Windows_NT 6.1.7600 npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "jsdom" npm ERR! cwd D:\node.js npm ERR! node -v v0.6.6 npm ERR! npm -v 1.1.0-beta-4 npm ERR! path D:\node.js\node_modules\jsdom\node_modules_request.npm\package\ tests\test-body.js npm ERR! fstream_path D:\node.js\node_modules\jsdom\node_modules_request.npm\ package\tests\test-body.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chmod npm ERR! code ENOENT npm ERR! message ENOENT, no such file or directory 'D:\node.js\node_modules\jsdo m\node_modules_request.npm\package\tests\test-body.js' npm ERR! fstream_stack Object.oncomplete (C:\Program Files\nodejs\node_modules\n pm\node_modules\fstream\lib\writer.js:285:17) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! D:\node.js\npm-debug.log npm not ok
于是查询了好多资料,总结如下:
主要是jsdom依赖的contextify是linux的native code,必须在win下重新编译,所以光npm install contextify是不行的
解决方案:
1、下载别人编译的contextify的zip包,https://github.com/Benvie/contextify/zipball/master
将内容保存到node_modules目录中,改名为contextify
2、安装vcredist_x86,下载地址:http://www.microsoft.com/download/en/details.aspx?id=5555
以上方案参考了https://github.com/brianmcd/contextify/issues/12和https://github.com/tmpvar/jsdom/issues/378
相关文章推荐
- node.js express install on windows 7
- 【转】Install Node.js and NPM on Windows
- How to Install and Run a node.js App on Centos 6.4 64bit
- How to Run Node.js with Express on Mobile Devices
- Step by step instructions to install NodeJS on Windows
- How to install Node.js and NPM on Windows
- INSTALL NODE.JS ON WINDOWS
- Windows下编译opencv时出现“TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0501 or greater”错误解决方案
- Windows下安装RabbitMQ报错:unable to perform an operation on node时的解决方案
- Setup node.js on Windows Server
- Windows下安装RabbitMQ报错:unable to perform an operation on node时的解决方案
- npm is known not to run on Node.js vue启动报错
- windows安装rabbitmq报错Error: unable to perform an operation on node ''. Please see diagnostics...
- Node.js【2】开发环境搭建(Windows、Linux&Mac)
- 关于node.js使用formidable多文件上传解决方案
- Latest node.js & npm installation on Ubuntu 12.04
- Node.js学习2_Windows下Node.js与npm的安装与配置
- Windows下安装node.js(npm) git+vue
- Windows下安装nvm和node.js
- Use Node.js DDP Client on Arduino Yun to Access Meteor Server