misskey
misskey copied to clipboard
pnpm install fails due to dependencies problem
💡 Summary
Trying to update the instance to 2023.12.2 to 2024.2.0 following the manual.
🥰 Expected Behavior
pnpm install --frozen-lockfile installs all necessary dependencies normally.
🤬 Actual Behavior
running command fails after trying install sharp(or re2 when pnpm cleanall is not performed ) as it seems...
misskey@some-server ~/misskey % NODE_ENV=production pnpm install --frozen-lockfile
Scope: all 8 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +1171
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Downloading registry.npmjs.org/@swc/core-linux-x64-gnu/1.3.107: 15.78 MB/15.78 MB, done
Downloading registry.npmjs.org/@swc/core-linux-x64-musl/1.3.107: 18.78 MB/18.78 MB, done
Downloading registry.npmjs.org/@tensorflow/tfjs-core/4.4.0: 6.73 MB/6.73 MB, done
Downloading registry.npmjs.org/@tensorflow/tfjs/4.4.0: 29.74 MB/29.74 MB, done
Downloading registry.npmjs.org/@tensorflow/tfjs-layers/4.4.0: 6.01 MB/6.01 MB, done
Downloading registry.npmjs.org/typescript/5.3.3: 5.76 MB/5.76 MB, done
Downloading registry.npmjs.org/@swc/core-linux-x64-musl/1.3.56: 17.01 MB/17.01 MB, done
Downloading registry.npmjs.org/@tabler/icons/2.44.0: 5.50 MB/5.50 MB, done
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /home/misskey/.local/share/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Downloading registry.npmjs.org/three/0.160.1: 9.41 MB/9.41 MB, done
Downloading registry.npmjs.org/@swc/core-linux-x64-musl/1.3.105: 18.75 MB/18.75 MB, done
Downloading registry.npmjs.org/@swc/core-linux-x64-gnu/1.3.105: 15.74 MB/15.74 MB, done
Downloading registry.npmjs.org/@swc/core-linux-x64-gnu/1.3.56: 17.16 MB/17.16 MB, done
Progress: resolved 1171, reused 78, downloaded 1092, added 1171, done
WARN Failed to create bin at /home/misskey/misskey/node_modules/.pnpm/node_modules/.bin/aiscript-languageserver. ENOENT: no such file or directory, open '/home/misskey/misskey/node_modules/.pnpm/node_modules/@aiscript-dev/aiscript-languageserver/.dist/cli/index.js'
WARN Failed to create bin at /home/misskey/misskey/node_modules/.pnpm/github.com+aiscript-dev+aiscript-vscode@793211d40243c8775f6b85f015c221c82cbffb07/node_modules/aiscript-vscode/node_modules/.bin/aiscript-languageserver. ENOENT: no such file or directory, open '/home/misskey/misskey/node_modules/.pnpm/@github.com+aiscript-dev+aiscript-languageserver+releases+download+0.1.5@aiscript-dev-aiscript-languageserver-0.1.5.tgz/node_modules/@aiscript-dev/aiscript-languageserver/.dist/cli/index.js'
node_modules/.pnpm/[email protected]/node_modules/sharp: Running install script...
node_modules/.pnpm/[email protected]/node_modules/sharp: Running install script, failed in [email protected][email protected]/node_modules/@nestjs/core: Running postinstal.../[email protected]/node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node in…
└─ Failed in 1.4s at /home/misskey/misskey/node_modules/.pnpm/[email protected]/node_modules/sharp
node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@nestjs/core: Running postinstall script, done in 412ms
node_modules/.pnpm/[email protected]/node_modules/core-js: Running postinstall script, done in 343ms
node_modules/.pnpm/[email protected][email protected]/node_modules/vue-demi: Running postinstall script, done in 368ms
ELIFECYCLE Command failed with exit code 7.
📝 Steps to Reproduce
- install all required software
- git clone and git setup as in the official manual
- starting install
💻 Frontend Environment
* Model and OS of the device(s):
* Browser:
* Server URL:
* Misskey: (see Backend section below)
🛰 Backend Environment (for server admin)
* Installation Method or Hosting Service: Manually (on AWS Lightsail)
* Misskey: 2023.12.2 (Updating to 2024.2.0)
* Node: 20.11.1
* PostgreSQL: 15.6
* Redis: 7.2.4
* OS and Architecture: Ubuntu 22.04 (amd64)
Do you want to address this bug yourself?
- [ ] Yes, I will patch the bug myself and send a pull request
Maybe bumping sharp to 0.33.x solve the issue.
Related: https://redirect.github.com/lovell/sharp/issues/3833