-
Notifications
You must be signed in to change notification settings - Fork 38
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
Incorrectly flagging optional dependencies #71
Comments
Having the same issue here:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) and Missing npm-shrinkwrap packages: Package: fsevents Required by: remote-client * Specified: 1.1.2 * Installed: (not installed) Run `rm -rf node_modules/ && npm install` to install missing dependencies.
"broccoli-asset-rev": "^2.4.5", "ember-ajax": "^3.0.0", "ember-cli": "2.13.2", "ember-cli-app-version": "^3.0.0", "ember-cli-babel": "^6.0.0", "ember-cli-dependency-checker": "^1.3.0", "ember-cli-eslint": "^3.0.0", "ember-cli-htmlbars": "^1.1.1", "ember-cli-htmlbars-inline-precompile": "^0.4.0", "ember-cli-inject-live-reload": "^1.4.1", "ember-cli-qunit": "^4.0.0", "ember-cli-shims": "^1.1.0", "ember-cli-sri": "^2.1.0", "ember-cli-uglify": "^1.2.0", "ember-data": "~2.13.0", "ember-export-application-global": "^2.0.0", "ember-load-initializers": "^1.0.0", "ember-resolver": "^4.0.0", "ember-source": "~2.13.0", "loader.js": "^4.2.3" |
@d-schloss-mvg I upgraded to npm@5 and switched my shrinkwrap file to the new lockfile format, and this problem went away. |
@thomblake Thanks for this hint! |
Is there a way to handle Have exactly the same issue as initially posted |
Adding a "me to" here as well. I've just migrated a project up to ember 3 & node 8.9.4, and we're now having to re-run npm install a second time to prevent the ember-cli-dependency-checker from complaining 😞 . This is on a Windows 10 environment.
UPDATE: I initially generated the shrinkwrap file on Windows, which excludes the fsevents initially. Then, the next |
Just adding, a workaround for this is to:
It seems that just using |
I'm not sure if this is new or related to #50, but...
My shrinkwrap file includes fsevents with
"optional": true
and so naturally npm doesn't install it on linux where it's not supported. But when running ember exam, I get:The
optional
attribute was just added to npm shrinkwrap around the end of last year, so I wouldn't be surprised if it's not supported here yet, but it probably should be?Temporary workaround might be just removing that bit from the npm shrinkwrap file for now.
The text was updated successfully, but these errors were encountered: