Closed MingrenChen closed 2 years ago
What is the complete output of running npm install --verbose sharp
?
What is the complete output of running
npm install --verbose sharp
?
https://pastetext.net/0e5grcoril
Sorry, here is it. Thanks for reply.
npm info run sharp@0.30.3 install node_modules/sharp node-gyp rebuild
Thanks, the fact that it's always running node-gyp rebuild
, which is incorrect, suggests you've run into the corrupt lockfile bug in npm - please see https://github.com/npm/cli/issues/2606#issuecomment-924307833
Possible install-time or require-time problem
npm install
is the same as the architecture and platform of Node.js used at runtime.Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest, please open an issue against that package instead.Is this a problem with filesystem permissions?
No If you are using npm v6 or earlier and installing as a
root
orsudo
user, have you tried with thenpm install --unsafe-perm
flag? Yes If you are using npm v7 or later, does the user runningnpm install
own the directory it is run in? yes If you are using theignore-scripts
feature ofnpm
, have you tried with thenpm install --ignore-scripts=false
flag? n/aWhat is the complete output of running
npm install --verbose sharp
?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?System: OS: Linux 5.4 Ubuntu 20.04.4 LTS (Focal Fossa) CPU: (2) x64 Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz Memory: 1.45 GB / 3.84 GB Container: Yes Shell: 5.0.17 - /bin/bash Binaries: Node: 17.3.0 - ~/.nvm/versions/node/v17.3.0/bin/node npm: 8.3.0 - ~/.nvm/versions/node/v17.3.0/bin/npm