Tag: cygwin

在cygwin xterm上执行npm链接时出现EPERM错误

我在Windows 8上使用cygwin Xwin与nodejs,我试图从我的全局资源库npm链接包,但我总是得到以下错误 $ npm link lodash unbuild lodash@2.1.0 npm ERR! Error: EPERM, symlink 'C:\Users\Mike\AppData\Roaming\npm\node_modules\lodash' npm ERR! { [Error: EPERM, symlink 'C:\Users\Mike\AppData\Roaming\npm\node_modules\lodash'] npm ERR! errno: 50, npm ERR! code: 'EPERM', npm ERR! path: 'C:\\Users\\Mike\\AppData\\Roaming\\npm\\node_modules\\lodash' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Windows_NT 6.2.9200 npm ERR! command […]

rails在cygwin中创build类似于path的窗口

我在Cygwin的rails上使用ruby来创build一个博客,并且我还安装了nodejs和npm。 这是我在networking浏览器上得到的: 显示/home/Ellen/blog/app/views/layouts/application.html.erb其中第6行提出: module.js:338 throw err; ^ Error: Cannot find module 'C:\cygwin64\home\Ellen\blog\cygpath -m #{tmpfile.path}' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3 (在/home/Ellen/.gem/ruby/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee) 提取源(第6行附近): <head> <title>Blog</title> <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> </head> <body> Rails.root:/ home […]

npm命令通过ssh(Cygwin)发生错误

在我的MacOSX(10.11.6)上,我尝试通过ssh执行npm ls命令到Cygwin的bash(Windows10),但是发生了下面的错误。 # npm ls Error: Failed to replace env in config: ${APPDATA} at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:418:13 at RegExp.[Symbol.replace] (native) at RegExp.[Symbol.replace] (native) at String.replace (native) at envReplace (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:414:12) at parseField (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:392:7) at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:335:17 at Array.forEach (native) at Conf.add (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:334:23) at ConfigChain.addString (C:\Program Files\nodejs\node_modules\npm\node_modules\config-chain\index.js:244:8) Error: Failed to replace env in config: ${APPDATA} […]

在Cygwin for JStesting中,如何开始使用YUI YETI需要帮助

我是YETI需要运行的很多东西的新手,我通过了大部分步骤来实现它。 我已经安装了cygwin,所以我可以运行node.js和npm(我用这些说明)。 一旦完成,我跑npm install yeti ,雪人安装。 现在我可以input这样的东西: 这是我遇到问题的地方。 我无法弄清楚如何让demo.html在demo.html运行testing。 我可以打开我的浏览器file:///C:/test/demo.html ,我可以看到testing运行(这是YUItesting),所以我知道问题不是demo.html被打破。 另外,当我尝试运行yeti作为一个服务器( yeti –server server)时,它在“运行并报告结果”行之后,不让我做任何事情,除非我用ctrl-c退出,尽pipe我可以去localhost:8000 ,看看这个: 如果我尝试打开一个新的cygwin控制台,并执行此操作: 它给了我一堆我不明白的错误。 帮帮我!

NodeJs process.stdin.resume()在Cygwin中不起作用

试图制作一个CLItypes的程序 – 等待用户input。 在Cygwin中,脚本刚刚退出。 只要在脚本process.stdin.resume() 似乎在Linux VM上工作。 在Windows命令行上也可以工作。 我假设'terminal'有关Cygwin的东西..

如何查看cygwin中进程使用了​​多less内存?

我在cygwin上运行node.js服务器,我想看看node.js进程使用了​​多less内存。 我怎么做? 任务pipe理器我认为只显示cywin控制台内存? 有没有一个命令来做到这一点?

Node.js无法find模块 – 干扰Windows上的cygwin

我正在testingBootstrap框架(来自Twitter),并尝试在安装Node.js之后在本地构build它。 它失败了,因为它找不到较less的模块(我也安装了'npm install -g less'): C:\Users\geir\code\bootstrap>make lessc html/less/bootstrap.less > html/css/bootstrap.css node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module 'C:\cygdrive\c\Users\geir\AppData\Roaming\npm\node_modules\less\bin\lessc' at Function._resolveFilename (module.js:332:11) at Function._load (module.js:279:25) at Array.0 (module.js:479:10) at EventEmitter._tickCallback (node.js:192:40) Makefile:2: recipe for target `all' failed make: *** [all] Error 1 之所以失败,是因为“cygdrive”是在制作模块时查找文件夹的层次结构,我已经validation了“lessc”实际上是在C:\ Users \ geir […]

如何在windows node.js上运行Mochatesting(错误:找不到模块'C:\ cygdrive \ c \ Users)

我试图在Windows中运行一个应用程序,这个应用程序有一些摩卡testing。 我需要做。 我读过这个 摩卡要求make。 找不到在Windows上工作的make.exe 和这个 Node.js无法find模块 – 干扰Windows上的cygwin 我有在Github目录(cygwin目录结构之外)的应用程序,我安装了节点的Windows版本。 我试过使用PowerShell和设置别名build议,但我总是得到 > module.js:340 > throw err; > ^ Error: Cannot find module 'C:\cygdrive\c\Users\Nicola\AppData\Roaming\npm\node_modules\mocha\bin\mocha' > at Function.Module._resolveFilename (module.js:338:15) > at Function.Module._load (module.js:280:25) > at Module.runMain (module.js:487:10) > at process.startup.processNextTick.process._tickCallback (node.js:244:9) Makefile:5: recipe for target `test' failed make: *** > [test] Error 1 我在那个目录中安装了mocha(顺便说一句,为什么他不在node_modules子目录中寻找mocha?)。 问题似乎是C:\cygdrive\c\Users部分我该如何解决? 我也尝试复制文件到我的家庭/目录下的cygwin,但我得到了 ./node_modules/.bin/mocha: […]

从NodeJS执行cygwin命令

使用Node的child_process模块,我想通过cygwin shell执行命令。 这就是我想要的: var exec = require('child_process').execSync; exec('mkdir -pa/b/c', {shell : 'c:/cygwin64/bin/bash.exe -c'}); TypeError:无效的数据 在WriteStream.Socket.write(net.js:641:11) 在execSync(child_process.js:503:20) 在复制:1:1 在REPLServer.defaultEval(repl.js:262:27) 在绑定(domain.js:287:14) 在REPLServer.runBound [as eval](domain.js:300:12) 在REPLServer。 (repl.js:431:12) 在emitOne(events.js:82:20) 在REPLServer.emit(events.js:169:7) 在REPLServer.Interface._onLine(readline.js:212:10) 我可以看到Node的child_process.js会添加/s和/c开关 ,无论shell设置如何,bash.exe都不知道如何处理这些参数。 我发现了一个解决这个问题的方法,但实际上并不理想: exec('c:/cygwin64/bin/bash.exe -c "mkdir -pa/b/c"'); 做上述显然只能在Windows而不是Unix系统上工作。 我如何在NodeJS的cygwin shell中执行命令?

Nodeunit命令未find?

我在Windows 7上运行,并使用cygwin安装节点。 我正在跟随如何在mcmahon的nodeunit网站上: http ://caolanmcmahon.com/posts/unit_testing_in_node_js。 我用npm来安装nodeunit,它说它已经安装好了,但是当我去调用它时,nodeunit,它说在所有不同的目录中找不到命令。 我是否必须设置某种pathvariables?