Tag: windows 7

Windows命令行打开与命令同名的文件

我安装了ender js,并从命令行运行它。 它生成一个名为ender.js的文件。 每当我运行命令“恩德信息”或任何与恩德在里面,它打开记事本ender.js文件。 如何停止打开文件并获取命令运行? 它在我删除文件时运行,但我需要该文件。

npm启动Microsoft JScript运行时错误800A138F对象预计

NPM入门… 我可以运行以下命令来启动我的应用程序。 node app 但是当我运行以下命令时,出现以下错误: npm start Windows脚本宿主对象的预期 2号线 800A138F Microsoft JScript运行时错误 App.js: var port = 5000; var express = require('express'); 的package.json: { "name": "2", "version": "1.0.0", "description": "", "main": "app.js", "scripts": { "start": "app.js" }, "author": "", "license": "ISC", "dependencies": { "express": "^4.13.3" } } 我当然运行了这个命令: npm install express –save 似乎NPM无法find快递包裹? 为什么不?

grunt init:节点不工作

我正在尝试做一个介绍咕噜教程。 我已经在全局安装了git,node.js和grunt(或者至less我以为我用过:npm install -g grunt(安装)),然后创build了一个快速目录并input它(mkdir demo,cd demo),但是当我input: > grunt init:node 在提示符下,我得到以下内容: grunt-cli: The grunt command line interface (v0.1.11) Fatal error: unable to find local grunt If you're seeing this message, either a Gruntfile wasn't found or hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting […]

良好的Windows 7的IDE通过SSH的node.js devlopment

刚开始学习linux,我有一台运行Ubuntu 11.10的Amazon EC2服务器。 我正在尝试学习node.js并获得一个简单的游戏服务器。 我的家用机器是Windows 7,所以我使用PuTTy SSH进入我的EC2服务器。 我想知道你们会推荐哪种IDE? 我非常喜欢NetBeans,这是我对PHP的首选IDE,但是没有node.js项目types,并且通过插件支持。 我不是Eclipse的忠实粉丝,因为它看起来比它需要的更复杂 – 但是如果这是最好的,我会使用它 – 目前我有用于PHP开发人员(Helios)和Indigo的Eclipse – 哪个最好? 这些版本真的很重要吗?

在Windows 7上的节点失败

============================== 已解决:从节点4.0.0切换到0.12.7。 Node v4.0.0似乎是相当原始的 我读过很多文章,他们没有帮助我。 任何解决方法? 我已经在Windows 7上安装了Visual Studio Express 2013,并set GYP_MSVS_VERSION=2013 。 但是在npm install我仍然得到了与socket.io依赖相关的以下错误: error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>)' : function template error C3083: 'smalloc': the symbol to the left of a '::' must be a type [ error C2039: 'FreeCallback' : is not a member of 'node' [ error C2061: syntax error : identifier […]

'gyp'在退出代码:1时试图使用npm在窗口上安装zookeeper

我尝试使用npm 1.3.9在Windows 7上安装Zookeeper 3.4.5。 当我进入 npm安装zookeeper 我明白了 File "C:\Program Files\npm-1.3.9\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSProject.py", line 181, in AddFileConfig raise ValueError('AddFileConfig: file "%s" not in project.' % path) ValueError: AddFileConfig: file "." not in project. gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\npm-1.3.9\node_modules\npm\node_modules\node-gyp\lib\configure.js:424:16) gyp ERR! stack at […]

试图让摩卡看我的项目时,“没有这样的模块”错误

我试图让摩卡看我的项目进行testing,并不断运行testing,但是当我使用-w标志,我得到一个错误。 这里的testing执行得很好: C:\Foo>mocha . ? 1 tests complete (3ms) 这里用-w C:\Foo>mocha -w node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: No such module at EventEmitter.<anonymous> (node.js:392:27) at Object.<anonymous> (C:\Users\Greg\AppData\Roaming\npm\node_modules\mocha\bin\_mocha:203:11) at Module._compile (module.js:441:26) at Object..js (module.js:459:10) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Array.0 (module.js:479:10) at EventEmitter._tickCallback (node.js:192:40) 我在全球npm install […]

Windows_NT中的bcrypt模块的node-gyp构build错误6.1.7600(x86)

我发现许多答案就像这样一个问题,但是他们都解决不了我的问题。 这里是我的版本安装: node 0.10.31 npm 1.4.23 node-gyp 0.10.31 bcrypt 0.7.8 我有package.json "bcrypt": "0.7.x"的依赖项"bcrypt": "0.7.x" 。 这是我的一步一步: 1)运行npm install gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 我不得不安装Python 2.7。* 2)运行npm install MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install […]

node.js安装程序在Windows 7上出现“CAQuietExec失败”和1603错误代码失败

我试图在我的Windows 7上安装node.js。但是,每次我试图安装它给出以下错误: MSI (s) (A0:64) [20:01:44:207]: Executing op: CustomActionSchedule(Action=RegisterEventManifest,ActionType=3073,Source=BinaryData,Target=CAQuietExec,CustomActionData="wevtutil.exe" im "C:\Program Files\nodejs\node_etw_provider.man") MSI (s) (A0:F8) [20:01:44:217]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI7B6E.tmp, Entrypoint: CAQuietExec CAQuietExec: Transaction support within the specified resource manager is not started or was shut down due to an error. CAQuietExec: Error 0x80071a91: Command line returned an error. CAQuietExec: Error 0x80071a91: CAQuietExec […]

sh.exe“:node:command not found

我试图在Gitbash中运行一个JavaScript文件,但得到这个错误。 $ node chrome-devtools-autosave-server/index.js sh.exe": node: command not found 截图 如何解决这个问题? 我的操作系统是Windows 7(64位)