-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Optional dependencies not met #628
Comments
|
Do you have any output that would imply that any of these failed to install or is it silent? If you put together a repro that I can run locally that reproduces this then I should definently be able to fix this! |
Woah, that's a fast response! The package at hand is gulp-imagemin and it seems to have optional dependencies that are not truly optional. The packages are not installed in the |
I'm hitting the same issue via Error: Cannot find module 'imagemin-gifsicle'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/path/to/project/node_modules/gulp-imagemin/index.js:8:26)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/path/to/project/gulp/images.js:5:18)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32) I'm not sure if this is a |
Same here. Looks like optional dependencies won't get installed. node 6.7.0 |
same here for
|
@sendilkumarn thats great 👍 |
please note even running
Installing the optional dependency directly
But when i run the command |
Do you want to request a feature or report a bug?
A bug
What is the current behavior?
When running
yarn
optional dependencies of packages are not met.If the current behavior is a bug, please provide the steps to reproduce.
Run a package with
optionalDependencies
declaredWhat is the expected behavior?
Since there is an explicit
--ignore-optional
flag, I expect optional dependencies to be met.Please mention your node.js, yarn and operating system version.
node: 4.1.2
yarn: 0.15.1
osx: 10.12
The text was updated successfully, but these errors were encountered: