You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not install the npm dependencies and noticed this error:
npm ERR! code 1
npm ERR! path /Users/dmsnell/code/a8c/wordpress-playground/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c -- (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Detected globally-installed libvips v8.15.0
npm ERR! sharp: Building from source via node-gyp
npm ERR! TOUCH Release/obj.target/libvips-cpp.stamp
npm ERR! CC(target) Release/obj.target/nothing/node_modules/node-addon-api/nothing.o
npm ERR! LIBTOOL-STATIC Release/nothing.a
npm ERR! CXX(target) Release/obj.target/sharp-darwin-arm64v8/src/common.o
npm ERR! gyp info it worked if it ends with ok
…
npm ERR! Package libarchive was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containing `libarchive.pc'
npm ERR! to the PKG_CONFIG_PATH environment variable
npm ERR! Package 'libarchive', required by 'vips', not found
After I removed vips from my system I was able to npm ci again without problem. Not sure if it's possible to prevent this, but it's surprising that the local build fails because of a global package.
The text was updated successfully, but these errors were encountered:
Could not install the
npm
dependencies and noticed this error:After I removed
vips
from my system I was able tonpm ci
again without problem. Not sure if it's possible to prevent this, but it's surprising that the local build fails because of a global package.The text was updated successfully, but these errors were encountered: