Skip to content

The Binary in npm package is not executable  #61

Closed

Description

@Mbiakop1

And I think can be solved by performing this To use this, supply a bin field in your package.json which is a map of command name to local file name. On install, npm will symlink that file into prefix/bin for global installs, or ./node_modules/.bin/ for local installs.

For example, myapp could have this:

{ "bin" : { "myapp" : "./cli.js" } }

So, when you install myapp, it’ll create a symlink from the cli.js script to /usr/local/bin/myapp.

Activity

  1. kentonv commented on Sep 30, 2022

    @kentonv
    Member

    Hmm it seems like a lot of people have been able to run it... could something be different about your environment?

  2. penalosa commented on Sep 30, 2022

    @penalosa
    Contributor

    We do have that field in the npm package-could you share the command you're trying to run that's failing?

  3. Mbiakop1 commented on Oct 1, 2022

    @Mbiakop1
    Author

    Hmm it seems like a lot of people have been able to run it... could something be different about your environment?

    Okey! may be that should be the case

  4. penalosa commented on Oct 4, 2022

    @penalosa
    Contributor

    Closing this for now, because it doesn't seem to be a widespread problem. If you're still running into issues and have more details about your specific environment, we can re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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