sharp: Meteor: "Unable to resolve some modules"
Hi,
I would like to use sharp for image manipulation in a meteor project I am working on. I add the sharp dependency in my package.json:
"sharp": "^0.15.1"
I didn’t add any dependencies
When start the app, I have this error:
Unable to resolve some modules:
"path" in /mnt/vdb/web/site-LBF/node_modules/sharp/index.js (web.browser)
"util" in /mnt/vdb/web/site-LBF/node_modules/sharp/index.js (web.browser)
"stream" in /mnt/vdb/web/site-LBF/node_modules/sharp/index.js (web.browser)
"events" in /mnt/vdb/web/site-LBF/node_modules/sharp/index.js (web.browser)
"./build/Release/sharp" in /mnt/vdb/web/site-LBF/node_modules/sharp/index.js (web.browser)
Theses modules are not the dependencies listed in the npm page. I tried to add the dependencies to the package.json:
"tar": "^2.2.1",
"request": "^2.74.0",
"semver": "^5.3.0",
"nan": "^2.4.0",
"color": "^0.11.3",
"bluebird": "^3.4.1",
"sharp": "^0.15.1"
It doesn’t change anything.
Am I missing any prerequisites ?
Thanks
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Include '.node' ext for Meteor's require() implementation #537 — committed to lovell/sharp by lovell 8 years ago
I found a ‘solution’:
$ cd node_modules/sharp/build/Release$ ln -s sharp.node sharp