Tag: windows 8

让Blade能够在Windows 8上使用Meteor

我通过这个MSI安装程序安装了Meteor for Windows。 现在我想让Blade与它一起工作。 我在Blade文档中阅读了本教程 ,但是气氛/陨石似乎不适用于Windows。 有没有解决方法?

node.js:构buildmsnodesql失败

我想从node.js连接到Windows8上的MSSQL,但我不能得到它的工作:( 如果我运行node-gyp configure build 我得到这个错误 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:\Users\mkirchweger\AppData\Roaming\ npm\node_modules\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789: 12) gyp ERR! System Windows_NT 6.2.9200 gyp ERR! command "node" "C:\\Users\\mkirchweger\\AppData\\Roaming\\npm\\node_mod ules\\node-gyp\\bin\\node-gyp.js" "configure" "build" gyp ERR! […]

安装socket.io时出错

我试图在成功安装node和nmp之后在Windows(8)中安装socket.io包 但是以同样的方式npm install socket.io ( npm install socket.io )我得到以下错误。 http://pastebin.com/EykjZ85X Generating code Finished generating code validation.vcxproj -> c:\~\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\Release\validation.node socket.io@0.9.16 node_modules\socket.io ├── base64id@0.1.0 ├── policyfile@0.0.4 ├── redis@0.7.3 └── socket.io-client@0.9.16 (xmlhttprequest@1.4.2, uglify-js@1.2.5, active-x-obfuscator@0.0.1, ws@0.4.31) 我不知道这是一个错误,但运行基本testing应用程序http://socket.io/#how-to-use不起作用。 它说它找不到套件socket.io 任何想法出了什么问题?

在Windows 8上'npm我'错误

我尝试安装包。 在Windows 7上它工作得很好,但在Windows 8上我得到了: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'i' ] 2 info using npm@1.4.14 3 info using node@v0.10.29 4 verbose node symlink C:\Program Files\nodejs\\node.exe 5 verbose readDependencies using package.json deps 6 verbose install where, deps [ […]

我需要在Windows 8中保存Node.js的javascript文件

我已经下载了node.js,并且不得不第一次使用它们的命令行。 看起来,这个星球上的每个教程都给出了相同的启动应用程序。 它使用的代码… var http = require('http'); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end('Hello World\n'); }).listen(8124); console.log('Server running at http://127.0.0.1:8124/'); 并希望我将它保存到example.js文件中。 该文件可以通过input运行… node example.js 但所有的命令行给我的是 … 教程没有说我应该保存文件。 到我的C盘? 对与node.js相同的文件? 地方? 我已经尝试了所有三个,他们似乎并没有工作。 如果还有其他解决scheme,或者其他的东西,我应该调查和询问,那些帮助也将被赞赏。 但在这一点上,我真的不知道问题是什么,似乎没有什么资源可以帮助我。

如何为Firebase实现Node.Js服务器端事件侦听器?

我正在尝试使用firebase的Node包来监听Firebase中的数据更改。 我正在使用on()方法,应该监听更改不停(而不是once()方法,只侦听特定事件的第一次发生)我的listener.js文件在服务器上是完全一样的这个: var Firebase=require('firebase'); var Ref= new Firebase('https://mydatabase.firebaseio.com/users/'); Ref.on('child_changed',function(childsnapshot,prevchildname){ Ref.child(childsnapshot.key()).push("I hear you!"); } ) ; 但它只在第一次出现时才起作用,并在第二次出现后引发致命的内存错误。 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed – process out of memory 我对服务器端编程非常陌生,不知道该怎么做。 我必须错过重要的事情。 我应该首先使用节点设置特殊的服务器设置吗? 或者可能做一个守护进程,每秒钟用once()方法运行一个脚本?

node.js / karma /端到端testing:无法代理/app/index.html(错误:连接ECONNREFUSED)

以下是我在尝试运行MS Windows 8 Professional上的AngularJS教程http://docs.angularjs.org/tutorial/step_05的端到端testing时得到的消息。 你能告诉我如何使这个testing运行良好? [2013-06-10 17:27:54.100] [WARN] config – "/" is proxied, you should probably change urlRoot to avoid conflicts INFO [karma]: Karma server started at http://localhost:9876/ INFO [launcher]: <<< Starting browser Chrome INFO [launcher]: — Starting browser Chrome INFO [Chrome 27.0 (Windows)]: Connected on socket id E20UigDmDqhk3jaRRYAP WARN [proxy]: failed to proxy /app/index.html […]

当我改变观看的文件时,fs.watch发射了两次

fs.watch( 'example.xml', function ( curr, prev ) { // on file change we can read the new xml fs.readFile( 'example.xml','utf8', function ( err, data ) { if ( err ) throw err; console.dir(data); console.log('Done'); }); }); OUTPUT: 一些数据 完成X 1 一些数据 完成X 2 这是我的用法错误还是..?