ionic-team / ionic-team/capacitor-assets
npm install @capacitor/assets Apple M1 fails
- Dominant language
- TypeScript
- Stars
- 583
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm trying to install the capacitor assets on my Mac Mini M1 but unfortunately I get this error:
`
npm ERR! code 1
npm ERR! path /node_modules/@capacitor/assets/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-arm64v8.tar.br
npm ERR! internal/fs/utils.js:332
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: EACCES: permission denied, copyfile '/var/folders/px/4ddgk5bs1y9_f5qfhgdx3_140000gn/T/4481-libvips-8.12.2-darwin-arm64v8.tar.br' -> '/../.npm/_libvips/libvips-8.12.2-darwin-arm64v8.tar.br'
npm ERR! at Object.copyFileSync (fs.js:2062:3)
npm ERR! at WriteStream. (/../node_modules/@capacitor/assets/node_modules/sharp/install/libvips.js:204:20)
npm ERR! at WriteStream.emit (events.js:400:28)
npm ERR! at emitCloseNT (internal/streams/destroy.js:87:10)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:81:21) {
npm ERR! errno: -13,
npm ERR! syscall: 'copyfile',
npm ERR! code: 'EACCES',
npm ERR! path: '/var/folders/px/4ddgk5bs1y9_f5qfhgdx3_140000gn/T/4481-libvips-8.12.2-darwin-arm64v8.tar.br',
npm ERR! dest: '/.../npm/_libvips/libvips-8.12.2-darwin-arm64v8.tar.br'
npm ERR! }
`
`
Angular CLI: 14.2.10
Node: 14.20.0
Package Manager: npm 7.20.5
OS: darwin arm64
Ionic 6.3.7
Capacitor: 4.6.1
`
Thanks in advance for your support.
Contributor guide
Assessment
This issue has not been assessed yet.