-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Can't find '../package.json' on OS X #1647
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
Comments
I have experienced the same problem on Windows 10. I can modify the statement below (from node-gyp.js) by adding ".json" to the require statement and it works, but obviously breaks npm install.
|
@thotchkiss That at least gets me around the compiler error. Now I just get a slew of warnings instead of errors:
|
Are you running this with I'm going to submit a PR to make an explicit |
Yes, this is when transpiling an Angular project using node-sass |
This isn't the first time I've seen this, I think that some tools that wrap node are messing with the require extensions. I've put in #1787 to make it explicit, that will hopefully get rolled out soon. |
Awesome. Thank you very much! |
Verbose output (from npm or node-gyp):
When building an Angular Universal project that uses node-sass, node-gyp fails on line 67 of node-gyp.js with:
Module not found: Error: Can't resolve '../package' in '/Users/btaylor/work/angular-apps/[project-name]/node_modules/node-gyp/lib
This only happens on OS X, currently at 10.14.2. I haven't experienced the same problem on Windows 10.
The text was updated successfully, but these errors were encountered: