Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec() does not search ancestor directories for node_modules #2

Closed
platinumazure opened this issue Feb 27, 2016 · 1 comment
Closed

Comments

@platinumazure
Copy link

Maybe a better title for this issue might be, exec() assumes the shelljs script is being run from the package root directory.

It would be awesome if exec(), or a new function that works similarly, would look in ancestor directories until it finds a package.json, and only then look for the package to execute in a node_modules subdirectory.

If exec() is run with the cwd being a subdirectory of the package, the function will silently fall back to the global installation of the package.

@nzakas
Copy link
Owner

nzakas commented Jul 5, 2016

This isn't the way this package is intended to work, and indeed, executing Node.js binaries isn't expected to work this way.

@nzakas nzakas closed this as completed Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants