Open ehiosunbishop opened 1 year ago
Which version of npm? Might take a look at https://sharp.pixelplumbing.com/install#common-problems
i use
npm --version 8.19.3
Which version of npm? Might take a look at https://sharp.pixelplumbing.com/install#common-problems
npm --version 8.19.3
Okay i have been able to install it...
i add to first of all switch to root user on my Terminal
sudo su Password:
and then ran the npm install again with the -g flag sh-3.2# sudo npm install -g @capacitor/assets
npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
added 437 packages, and audited 438 packages in 2m
52 packages are looking for funding
run npm fund
for details
I tried installing using this npm install @capacitor/assets but it keeps failing
i use an intel based mac running Mac Os Monterey
see error below:
npm ERR! code 1 npm ERR! path /Users/bishop/Desktop/IONIC_PROJECTS/litano_pro_app/projects/litano_user_app/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: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-darwin-x64.tar.br npm ERR! node:internal/fs/utils:348 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: EACCES: permission denied, copyfile '/var/folders/xx/j6fcwfns519gw6sdm4p3hc4w0000gn/T/40904-libvips-8.12.2-darwin-x64.tar.br' -> '/Users/bishop/.npm/_libvips/libvips-8.12.2-darwin-x64.tar.br' npm ERR! at Object.copyFileSync (node:fs:2866:3) npm ERR! at WriteStream. (/Users/bishop/Desktop/IONIC_PROJECTS/litano_pro_app/projects/litano_user_app/node_modules/sharp/install/libvips.js:204:20)
npm ERR! at WriteStream.emit (node:events:513:28)
npm ERR! at emitCloseNT (node:internal/streams/destroy:132:10)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
npm ERR! errno: -13,
npm ERR! syscall: 'copyfile',
npm ERR! code: 'EACCES',
npm ERR! path: '/var/folders/xx/j6fcwfns519gw6sdm4p3hc4w0000gn/T/40904-libvips-8.12.2-darwin-x64.tar.br',
npm ERR! dest: '/Users/bishop/.npm/_libvips/libvips-8.12.2-darwin-x64.tar.br'
npm ERR! }
npm ERR!
npm ERR! Node.js v18.13.0
npm ERR! A complete log of this run can be found in: npm ERR! /Users/bishop/.npm/_logs/2023-01-11T18_16_28_049Z-debug-0.log