Skip to content

command "gh tr" not working on win7 #8

@ramonPires

Description

@ramonPires

i'm running node-gh normally,but with gh-travis i got this issue:

PS D:\workspaces\Node.js\Node-GH\elixir> gh tr

C:\Users\RAMON\AppData\Roaming\npm\gh-tr.CMD:1
(function (exports, require, module, __filename, __dirname) { :: Created by np
                                                              ^
gh [error] Command not found
PS D:\workspaces\Node.js\Node-GH\elixir>

Opening this file gh-travis.cmd,the script is different from gh.cmd and others *.cmd files inside of C:\Users\RAMON\AppData\Roaming\npm folder.

gh-tr.cmd:

:: Created by npm, please don't edit manually.
"%~dp0\node_modules\gh-travis\bin\gh-travis.js"   %*

gh.cmd:

:: Created by npm, please don't edit manually.
@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\node_modules\gh\bin\gh.js" %*
) ELSE (
  node  "%~dp0\node_modules\gh\bin\gh.js" %*
)

mocha.cmd

:: Created by npm, please don't edit manually.
@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\node_modules\mocha\bin\mocha" %*
) ELSE (
  node  "%~dp0\node_modules\mocha\bin\mocha" %*
)

Searching, i found a possible solution:
http://stackoverflow.com/questions/10396305/npm-package-bin-script-for-windows
https://github.com/isaacs/npm/issues/2547

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions