System Information
- Strapi Version: 4.6.1
- Operating System: Windows 10
- Database: SQLlite
- Node Version: 18.13.0
- NPM Version: 8.19.3
- Yarn Version: 1.22.19
Hi, I tried to create project. My yarn installation failed all this because of Sharp getting error.
`> my-project@0.1.0 start
> strapi start
[2023-02-20 23:25:19.279] debug: ⛔️ Server wasn't able to start properly.
[2023-02-20 23:25:19.281] error: Could not load js config file C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\strapi-server.js:
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-win32-x64.node'
Require stack:
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\node_modules\sharp\lib\sharp.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\node_modules\sharp\lib\constructor.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\node_modules\sharp\lib\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\server\services\image-manipulation.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\server\services\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\server\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\strapi-server.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\utils\lib\import-default.js
- C:\Users\nagMyUserNamearsu\Documents\Stripe Test\test7\my-project\node_modules\@strapi\utils\lib\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\Strapi.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\commands\transfer\utils.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\bin\strapi.js
Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
- Install for the current win32-x64 runtime: "npm install --platform=win32 --arch=x64 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
Error: Could not load js config file C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\strapi-server.js:
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-win32-x64.node'
Require stack:
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\node_modules\sharp\lib\sharp.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\node_modules\sharp\lib\constructor.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\node_modules\sharp\lib\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\server\services\image-manipulation.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\server\services\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\server\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\plugin-upload\strapi-server.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\utils\lib\import-default.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\utils\lib\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\Strapi.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\index.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\commands\transfer\utils.js
- C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\bin\strapi.js
Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
- Install for the current win32-x64 runtime: "npm install --platform=win32 --arch=x64 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
at loadJsFile (C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\core\app-configuration\load-config-file.js:18:11)
at loadFile (C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\core\app-configuration\load-config-file.js:35:14)
at Object.loadPlugins (C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\core\loaders\plugins\index.js:103:26)
at async Strapi.loadPlugins (C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\Strapi.js:341:5)
at async Promise.all (index 2)
at async Strapi.register (C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\Strapi.js:377:5)
at async Strapi.load (C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\Strapi.js:487:5)
at async Strapi.start (C:\Users\MyUserName\Documents\Stripe Test\test7\my-project\node_modules\@strapi\strapi\lib\Strapi.js:217:9)`