草庐IT

heroku-buildpack-nodejs

全部标签

windows - Heroku Toolbelt Windows - Rails 控制台命令历史

在Windows上使用Heroku工具带时是否可以获取Rails控制台命令行历史记录?herokurunconsole这不适用于使用版本2.33.1的Windows7。 最佳答案 这应该可以完成工作:herokurunrailsc 关于windows-HerokuToolbeltWindows-Rails控制台命令历史,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/1356672

windows - 无法安装 heroku 核心插件

Windows8.1、64b上周一切顺利。每当我运行heroku命令时,它都会尝试安装heroku核心插件,例如:C:\Users\Usr\Documents\Aptana3_Workspace\mobile-site>herokurunInstallingcorepluginsheroku-apps,heroku-fork,heroku-git,heroku-local,heroku-run,heroku-status...?module.js:338?throwerr;?^??Error:Cannotfindmodule'./bin/npm-cli.js'?atFunction.M

node.js - 在没有 npm 的情况下安装 NodeJS 包

问题:如何在不使用npm的情况下手动安装NodeJS包(如grunt-cli)?环境:我已经在Windows10上安装了“BashonUbuntuonWindows”。我已经在没有Bash的“正常”Windows环境中成功安装了NodeJS+Grunt。NodeJS安装在bash环境(Linux子系统)Grunt尚未安装在(Linux子系统)背景(原因):我同事的grunt任务是为Ubuntu环境开发的,直接调用bash命令,这显然不能在“正常”的Windows环境中工作。这是一个实验,看看是否可以在“Windows上的Ubuntu上的Bash”中运行他的grunt任务,但是,我被困在

windows - 如何从 heroku 中的 postgresql 获取表?

我有Windows、gitbash、pg-admin3、一个带有PostgreSQL数据库的Heroku应用程序,是否有任何gitbash命令来获取数据库和表名?因为我忘记了名字而且我无法进行任何查询(select*from(?))我试过:gitbash中的\list命令,但不存在。从Heroku网站上看,但没有成功。有什么办法可以得到名字吗? 最佳答案 gitbash只是一个Cygwin风格的bash模拟器,它允许git在Windows下运行。正如没有与Postgres交互的原生bash命令一样,gitbash也没有。在任何一种情

javascript - NodeJS、Windows、wmic 标准输入

我在NodeJS中遇到Windows程序WMIC.exe(用于查询WindowsManagementInstrumentation)的问题。我可以生成一个wmic.exe进程,但它不会输出任何内容或接受任何输入。但是,如果我将stdin设置为null,它将正确运行并且我将收到输出。varspawn=require('child_process').spawn;varwmic=spawn('wmic',[],{stdio:['ignore']});wmic.stdout.on('data',function(data){console.log('Datareceived:'+data);

node.js - 在 Windows 上升级/卸载 NodeJS

Node版本v0.12.2以某种方式安装在我的Windows机器上,我想升级到更新的版本,但是,它不在“添加或删除程序”菜单中。当我尝试从WindowsMSI安装Node时,我得到了标准的windows1603错误(如下),我假设这意味着Windows认为该应用程序已经安装。MSI(s)(64:84):WindowsInstallerinstalledtheproduct.ProductName:Node.js.ProductVersion:6.11.0.ProductLanguage:1033.Manufacturer:Node.jsFoundation.Installationsu

windows - nodejs解码(子进程使用)

我将spawn用于JScript(来自Windows)我的解码文本问题???????T-SQL微软SQLServer2012???????-俄文。varworker,path=require('path'),spawn=require('child_process').spawn,cscript=path.join(process.env.SystemRoot,'system32','cscript.exe')functionstartCscript(){worker=spawn(cscript,['/nologo','testwsh.js']);worker.stdout.setEn

windows - 在 NodeJS 中跨网络读取 Windows 文件的权限

我正在尝试在Mac上使用NodeJS读取文本文件。该文件位于同一网络上的Windows计算机上。varfs=require('fs');varfile="smb://someserver/stuff/names.txt";fs.readFile(file,'utf8',function(err,data){if(err)throwerr;console.log(data);});当我运行这段代码时,我得到:>Error:ENOENT,open'smb://someserver/stuff/names.txt'我可能需要验证对文件的访问权限,但我还没有找到任何处理这种情况的文档或模块。是

windows - 使用全局包打包 nodejs 应用程序

我们有一个项目必须打包为zip,以便我们可以将其分发给我们的客户。使用普通的node_modules目录我没有问题。我只需将目录和node.exe一起放在我的项目文件夹中,就可以在其他每台计算机上启动我们的项目,而无需安装Node或运行任何npm命令。但现在我依赖于phantomjs,它需要作为全局包安装npminstall-gphantomjs。我如何将这样的模块打包到我们的项目中?我首先想到的是将phantomjs复制到本地的node_modules目录下,并将路径变量NODE_PATH设置到该目录下。它没有找到phantomjs。开发平台和客户端平台都是windows。

node.js - 如何将命令从 BAT 文件发送到在 Windows 中运行的 NodeJS 进程?

在通过批处理文件运行nodejs服务器时是否可以在批处理文件中制作/使用自定义文本命令?//CurrentbatchfilenodenodeServer.js//nodeServer.jsfunctionlist(){//insertquery}functionunlist(){//deletequery}截至目前,在我启动批处理文件后,nodeServer.js已启动并且批处理停止接受任何输入。我希望能够键入“nodeServer.jslist”(在批处理窗口中),然后调用nodeServer.js中名为“list”的函数,我希望通过使用“list”函数运行插入查询将有关服务器的数据