Skip to content

Check for binary in ./node_modules/.bin/ first #50

Description

@theredcat

When you want to have a clean package, you must put dev tool list and version in devDependencies in your package.json, for example :

  "devDependencies": {
    "gulp": "^3.8.8",
    "bower": "^1.8.0"
  }

However, node-which which is used to check if the binary is present doesn't check in this folder since ./node_modules/.bin/ is unlikely to be in your path.

A workaround is to run with a prefixed export like this :

PATH=$PATH:./node_modules/.bin/ ./node_modules/.bin/gulp

But I think it would be a better solution to check in .node_modules/.bin/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions