X Tutup
The Wayback Machine - https://web.archive.org/web/20251204185318/https://github.com/nodejs/node/issues/45504
Skip to content

add relative ./node_modules/.bin to PATH when installing node #45504

@DetachHead

Description

@DetachHead

What is the problem this feature will solve?

currently, to run scripts in ./node_modules/.bin, you have to use npx scriptname or ./node_modules/.bin/scriptname, since the .bin folder is not in your PATH

What is the feature you are proposing to solve the problem?

i found out that you can add relative paths to the PATH variable on both windows and linux. this means the problem can be easily solved by adding ./node_modules/.bin to your PATH. i think node should do this on install

What alternatives have you considered?

IDEs can do it. webstorm currently does but vscode does not. microsoft/vscode#94067

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup