Tag: cmd

运行时的node-gyp命令不使用cmd-package

我希望能够使用node-gyp configure和node-gyp构build,而无需使用cmd或软件包(如node-cmd)。 运行时需要能够为当前平台生成适当的项目构build文件,并生成编译后的.node文件,而不需要cmd命令。 有没有一个解决scheme或包,可以生成相同的结果,而不需要运行cmd命令?

npm –version给出errormodule.js:538抛出错误; ^错误:找不到模块

在安装Node.js之后,我通过在cmd中input来检查节点的版本: 节点 – 版本, 它显示了我的版本,但是当我键入 npm – 版本 它给了我一个错误 module.js:538 throw err; ^ Error: Cannot find module

安装Cordova时出错

我试图在我的电脑上安装cordova。 我得到以下错误。 > Your environment has been set up for using Node.js 0.12.0 (x64) and npm. C:\Users\DELL>npm install -g cordova npm WARN engine npm@1.4.28: wanted: {"node":">=0.8","npm":"1"} (current: {"node" :"0.12.0","npm":"2.5.1"}) npm WARN engine cordova-js@3.7.3: wanted: {"node":"~0.10.x"} (current: {"node":" 0.12.0","npm":"2.5.1"}) npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: { "node":"0.12.0","npm":"2.5.1"}) npm ERR! fetch failed http://registry.npmjs.org/resolve/-/resolve-0.7.1.tgz npm […]

使用节点js从打印机扫描

我怎样才能使用nodejs来告诉打印机(&扫描仪)开始扫描,我试图使用exec = require('child_process').exec来执行一些命令提示符,但我不知道如何告诉扫描仪开始扫描,我会接受命令提示符的答案。

跨平台的方式获取目录列表,并在其中运行npm install

我正在运行下一个命令为模块目录中的每个模块执行npm install if (process.platform === 'win32') { return 'powershell -noprofile -command "Get-ChildItem ../modules | ? { $_.PSIsContainer } | % { Push-Location $_.FullName; npm install; Pop-Location }"'; } else { return 'for dir in ../modules/*; do (cd $dir && pwd && npm install); done' } 有没有更好的方法来做到这一点? 应该是跨平台的

在批量启动后退出node.js cmd

我有两个我想调用的batch file,让它们自己closures。 首先,我通过npm更新一个包,更新之后,它应该打包一个vsix扩展。 问题:在调用npm之后,整个batch file的其余部分将被忽略。 有没有人有这个解决方法? 第一个文件: @echo off start /wait nodejs.cmd|echo n>nul tfx extension create –manifest-globs src\vss-extension.json 第二个文件(nodejs.cmd): npm i -g tfx-cli exit 在此先感谢☺

在Windows上安装节点后,Node命令在cmd中不工作?

我已经从节点的官方站点安装节点v4。 现在,当我尝试在CMD中运行node命令,它显示以下内容: C:\Users\PcName>node Node Commands Syntax: node {operator} [options] [arguments] Parameters: /? or /help – Display this help message. list – List nodes or node history or the cluster listcores – List cores on the cluster view – View properties of a node online – Set nodes or node to online state offline – Set […]

在CMD终止服务器上的节点JS

我正在关注这个网站的启动信息。 http://thecodinghumanist.com/blog/archives/2011/5/6/serving-static-files-from-node-js 然而,使用他的方法,我可以重新启动服务器的唯一方法是closuresCMD窗口,并重新启动,我想知道是否有一种方法或方法,能够closures服务器? 我不能在那里键入任何东西,就像等待它作为一个控制台日志的东西,但我想编辑节点的JS文件,然后重新启动服务器没有麻烦closures窗口,打开它,然后每次键入“node basic.js”或者改变我做的。 任何帮助,请在CMD和Node.js大声笑:)也可以是你可能已经知道的新手。

哟webapp命令冻结(Windows 7)

在Ubuntuterminal中运行yo webapp没有任何问题。 但是,当我在Windows中运行它冻结在这一点上 问题:我如何解决这个问题 ,使它不会在图片中显示的地方冻结? PS:只是把这里的所有输出尝试运行yo webapp > output.txt但它停在第一个问题。 _—–_ | | |–(o)–| .————————–. `———´ | Welcome to Yeoman, | ( _´U`_ ) | ladies and gentlemen! | /___A___\ '__________________________' | ~ | __'.___.'__ ´ ` |° ´ Y ` Out of the box I include HTML5 Boilerplate, jQuery, and a Gruntfile.js to build your […]

Grunt:grunt-hub并不是在看所有的项目

我已经安装了grunt-hub到我的工作区,看起来像这样 hub/ node_modules/ grunt/ grunt-hub/ Gruntfile.js package.json 在Gruntfile.js中我写了这个, module.exports = function (grunt) { 'use strict'; grunt.initConfig({ pkg : grunt.file.readJSON( 'package.json' ), hub: { src: [ 'hub/*/Gruntfile.js' ], watch: { src: '<%= hub.src %>', tasks: ['watch'] } } }); grunt.loadNpmTasks('grunt-hub'); grunt.registerTask('default', []); } 我在hub目录下有四个文件,它们有自己的Gruntfiles。 hub/ project1/ … Gruntfile.js … project2/ … Gruntfile.js … project3/ … Gruntfile.js […]