[英]Got error on installation of strapi. something went wrong installing the "sharp" module. How to fix it
sharp module is present in node_module folder but why it's showing error.尖锐模块存在于 node_module 文件夹中,但为什么它显示错误。 I don't know what's the reason behind.Even I install sharp.but still getting error.If anyone know how to fix sharp module?.我不知道背后的原因是什么。即使我安装了sharp。但仍然出现错误。如果有人知道如何修复sharp模块? In addition.此外。 when I try to install with yarn than got something else error.当我尝试使用纱线安装而不是出现其他错误时。 C:\Users\4' is not recognized as an internal or external command, operable program or batch file. C:\Users\4' 不是内部或外部命令、可运行程序或批处理文件。
Error:错误:
Could not load js config file D:\Mohsin-Work-Space\Strapi Backend Practice Session\project_strapi23\node_modules@strapi\plugin-upload\strapi-server.js: Something went wrong installing the "sharp" module无法加载 js 配置文件 D:\Mohsin-Work-Space\Strapi Backend Practice Session\project_strapi23\node_modules@strapi\plugin-upload\strapi-server.js:安装“sharp”模块出现问题
The specified module could not be found.指定的模块无法找到。 \?\D:\Mohsin-Work-Space\Strapi Backend Practice Session\project_strapi23\node_modules@strapi\plugin-upload\node_modules\sharp\build\Release\sharp-win32-x64.node \?\D:\Mohsin-Work-Space\Strapi 后端实践会\project_strapi23\node_modules@strapi\plugin-upload\node_modules\sharp\build\Release\sharp-win32-x64.node
I also run into this problem during my installation, and how I managed to fix it was to run the installation command as administrator and everything worked.我在安装过程中也遇到了这个问题,我设法解决的方法是以管理员身份运行安装命令,一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.