Skip to content

npm install -g doesn't create and executable in Windows #1

@joaocc

Description

@joaocc

Hi,
I tried to install "to" globally (via npm install -g) but I could not find any "to.cmd" file under "%AppData%\Roaming\npm".
Is it possible to implement this so that "to" can be used directly in a Windows system?

below is an example of such a script

@if EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\node_modules\to\bin\to" %*
) ELSE (
node "%~dp0\node_modules\to\bin\to" %*

)

Thanks and keep up the good work.
J

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions