简体   繁体   English

安装strapi时出错。 安装“sharp”模块出了点问题。 如何修复它

[英]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.

相关问题 MAC M1 安装“sharp”模块出现问题 - MAC M1 Something went wrong installing the "sharp" module 在 webpack 中使用 node-loader 安装“sharp”模块出现问题 - Something went wrong installing the "sharp" module, using node-loader in webpack 错误:测试 postman 时出现问题 - error: something went wrong while testing postman 使用 Nodejs Sharp 模块时出错。 模块解析失败:意外字符 '' (1: 0) - Error when using the Nodejs Sharp module. Module parse failed: Unexpected character '' (1: 0) 如何修复:“错误 fsevents@2.0.7:平台“linux”与此模块不兼容。” - How to fix: "error fsevents@2.0.7: The platform "linux" is incompatible with this module." 使用 UUID npm 模块出现奇怪错误。 我究竟做错了什么? - Getting strange error using UUID npm module. What am I doing wrong? React Native 寻找错误的文件夹并抛出“无法解析模块。 这些文件都不存在”错误 - React Native seeks wrong folder and throws “Unable to resolve module. None of these files exist” error 出了点问题,查询留在了编译的代码中 - Something went wrong and the query was left in the compiled code 引擎“节点”与此模块不兼容。 预期版本“&gt; 0.4.x &lt; 0.9.0”。 有“12.22.1”吗? 如何解决这个问题 - The engine “node” is incompatible with this module. Expected version “> 0.4.x < 0.9.0”. Got “12.22.1” ? How to solve this 尝试在 cPanel 上部署 Flutter Web 应用程序时出错:“我们很抱歉,但出了点问题..” - Error While trying to Deploy Flutter Web App on cPanel: "We're sorry, but something went wrong.."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM