Skip to content

NPM installation incorrect #1190

Closed
Closed
@jtiee

Description

@jtiee

Thanks for your bug report!

Before submitting this issue, please make sure the same problem was
not already reported by someone else.

Please describe the bug you're facing. Consider pasting example
Taskfiles showing how to reproduce the problem.

  • Task version: 3.25.0
  • Operating System: macOS Ventura 13.3.1 (a), on Macbook M1 Pro
  • Node.js: v20.0.0
  • NPM: 9.6.4

Repro steps:

  1. Install task with NPM:

    $ npm i -g @go-task/cli
    
    added 2 packages in 3s
    
  2. Run task:

    $ task
    -bash: task: command not found
    
  3. Investigate the installation folder:

    $ cd /usr/local/lib/node_modules/\@go-task/cli/
    $ ls
    LICENSE
    README.md
    Unknown command: "bin"??To see a list of supported npm commands, run:?  npm help/
    bin/
    node_modules/
    package.json
    
  4. Where is the task binary?

    $ ls -l 'Unknown command: "bin"
    
    To see a list of supported npm commands, run:
      npm help'/
    total 11352
    -rwxr-xr-x  1 jtiee  wheel  5808642 27 May 11:51 task*
    

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