admin管理员组

文章数量:1123060

Anyone's help appreciated on this. I've already had four front end developers trying to work this one out. No joy.

I have an environment set up, highly adapted from this one:

When I run npm install I'm always getting this error(s) in the console:

Using Windows 11 Enterprise.

I've been trying this for 3 days, with no luck. Scoured all Stacks + tried most of the suggestions.

Any help much appreciated, thanks.

I've tried the following:

  • Manually installing different versions of 'sharp'
  • Changing Node versions (down + up) using NVM command
  • Deleting node-modules folder + deleting packagelock file (if it appears)
  • Changing Python versions (down + up) using pythenv command
  • Clearing NPM cache: npm cache clean --force

Current version of node is: v16.15.1, NPM = 8.11.0, Python = 2.7.18

I would expect now errors + when I run npm run dev it should start.

I have this set up running on another laptop using this: Node = 11.15.0, NPM = 6.7.0, Python = 2.7.18

本文标签: pythonnpminstall errornpm ERR code 1Node Modules Sharp failedStack Overflow