module initialization error: Error
at Object.hasVendoredLibvips (/var/task/node_modules/sharp/lib/libvips.js:61:13)
at Object.<anonymous> (/var/task/node_modules/sharp/lib/constructor.js:9:22)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/task/node_modules/sharp/lib/index.js:3:15)
how can fix this error?
im already try this http://sharp.pixelplumbing.com/en/stable/install/#aws-lambda
and failed
info sharp Using cached C:\Users\kimjs\AppData\Roaming\npm-cache\_libvips\libvips-8.7.4-linux-x64.tar.gz
ERR! sharp EPERM: operation not permitted, symlink 'libpng16\pnglibconf.h' -> 'C:\Users\kimjs\OneDrive\氚旐儠 頇旊┐\picpledynamo\dynamo\node_modules\sharp\vendor\include\pnglibconf.h'
info sharp Attempting to build from source via node-gyp but this may fail due to the above error
info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies
C:\Users\kimjs\OneDrive\氚旐儠 頇旊┐\picpledynamo\dynamo\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\kimjs\OneDrive\氚旐儠 頇旊┐\picpledynamo\dynamo\node_modules\sharp
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kimjs\AppData\Roaming\npm-cache\_logs\2019-04-26T07_20_14_387Z-debug.log
Hi, the EPERM: operation not permitted, symlink message suggests you're installing to a FAT32 drive/folder, which doesn't support symlinks.
Did you try the Docker-based approach? https://sharp.pixelplumbing.com/en/stable/install/#aws-lambda
is docker work in window?
i solved cmd need root access
i solved cmd need root access
You saved my life :-)
Run the cmd as Admin solved my problem.
Most helpful comment
i solved cmd need root access