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

Invalid path when searching for module #3

Open
jirrick opened this issue Aug 22, 2017 · 8 comments
Open

Invalid path when searching for module #3

jirrick opened this issue Aug 22, 2017 · 8 comments

Comments

@jirrick
Copy link

jirrick commented Aug 22, 2017

Getting started with mongoose, got stuck on this error while trying to find 'bson-ext' module.

In method find_package_json_with_name the location = currentModule.filename; variable is set to /node_modules/require_optional/index.js.
This casues error in method find_package_json where checking (location + '/package.json') results in invalid path /node_modules/require_optional/index.js/package.json

Using Node 8.4.0

@JustinOkeefe
Copy link

+1 having same issue

@schmidlop
Copy link

+1 I am also having this issue

@umutklc
Copy link

umutklc commented Dec 8, 2017

+1 any solution for this problem?

@grofit
Copy link

grofit commented Mar 20, 2018

Getting this myself at the moment.

@omerbn
Copy link

omerbn commented Apr 8, 2018

Any updates on that?

@juancarlosgarcia-arg
Copy link

I start having this issue today. Any idea when this is going to be fixed. I just check and the change is not in master branch yet: https://github.com/christkv/require_optional/blob/master/index.js

@juancarlosgarcia-arg
Copy link

Guys: I just fix the issue renaming the app folder. Not sure if this is related to VS Code or Node. Anyone has the same outcomes?

@luigimannoni
Copy link

@juancarlosgarcia-arg I'm late to the party but there's a PR pending since last year. I am not sure if the original dev pays attention to this package anymore.

For late comers from Google: you can find the fix here I'd suggest to fork the module and add to the package.json your git version with the fix instead.

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

8 participants