- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚刚在 Gatsby 上对入门模板进行了 git clone - 当我运行“gatsby develop”时遇到了这个错误。我已经删除了节点模块,以及节点模块中的sharp模块。无济于事。
请让我知道此时发生了什么! :-)
PS C:\Users\ipche\gatsby-strapi-starter> gatsby develop
success open and validate gatsby-configs - 0.073s
ERROR
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp.node'
Require stack:
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\lib\constructor.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\lib\index.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\safe-sharp.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\extend-node-type.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\gatsby-node.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\resolve-module-exports.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\load-plugins\validate.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\load-plugins\load.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\load-plugins\index.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\index.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\commands\develop-process.js
- C:\Users\ipche\gatsby-strapi-starter\.cache\tmp-19076-nq3SvOAJn7yo
- Remove the "node_modules/sharp" directory, run "npm install" and look for errors
- Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
- Search for this error at https://github.com/lovell/sharp/issues
C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\src\stats.cc(130,1): error C2661: 'v8::Object::Set': no overloa
ded function takes 2 arguments [C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\build\sharp.vcxproj]
C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\src\stats.cc(140,20): warning C4834: discarding return value of
function with 'nodiscard' attribute [C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\build\sharp.vcxproj]
C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\src\pipeline.cc(1017,20): warning C4834: discarding return valu
e of function with 'nodiscard' attribute [C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\build\sharp.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\ipche\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ipche\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp
gyp ERR! node -v v14.13.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.22.1 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.22.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ipche\AppData\Roaming\npm-cache\_logs\2020-10-06T21_03_57_721Z-debug.log
1 Error(s)
Time Elapsed 00:00:11.67
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\ipche\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ipche\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd C:\Users\ipche\gatsby-strapi-starter\node_modules\sharp
gyp ERR! node -v v14.13.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm verb lifecycle sharp@0.22.1~install: unsafe-perm in lifecycle true
npm verb lifecycle sharp@0.22.1~install: PATH: C:\Users\ipche\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\ipche\gatsby-strapi-starter\node_modules\sharp\node_modules\.bin;C:\Users\ipche\gatsby-strapi-starter\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python38\Scripts\;C:\Python38\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\ipche\anaconda3;C:\Users\ipche\anaconda3\Library\mingw-w64\bin;C:\Users\ipche\anaconda3\Library\usr\bin;C:\Users\ipche\anaconda3\Library\bin;C:\Users\ipche\anaconda3\Scripts;C:\Users\ipche\AppData\Local\Microsoft\WindowsApps;C:\Users\ipche\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ipche\AppData\Local\GitHubDesktop\bin;C:\Panda3D-1.10.6-x64\python;C:\Panda3D-1.10.6-x64\python\Scripts;C:\Panda3D-1.10.6-x64\bin;C:\Users\ipche\Documents\GitHub\feelDetection\Panda3D-1.10.6-x64\python;C:\Users\ipche\Documents\GitHub\feelDetection\Panda3D-1.10.6-x64\python\Scripts;C:\Users\ipche\Documents\GitHub\feelDetection\Panda3D-1.10.6-x64\bin;C:\Users\ipche\AppData\Roaming\npm
npm verb lifecycle sharp@0.22.1~install: CWD: C:\Users\ipche\gatsby-strapi-starter\node_modules\sharp
npm info lifecycle sharp@0.22.1~install: Failed to exec install script
npm timing action:install Completed in 15700ms
npm verb unlock done using C:\Users\ipche\AppData\Roaming\npm-cache\_locks\staging-4a5f00369a03df36.lock for C:\Users\ipche\gatsby-strapi-starter\node_modules\.staging
npm timing stage:rollbackFailedOptional Completed in 250ms
npm timing stage:runTopLevelLifecycles Completed in 39766ms
最佳答案
首先删除 node_module 文件夹,然后尝试下面给出的方法!这对我有用
在package.json文件中手动更新sharp包的版本,然后尝试运行命令npm i sharp
或者先安装sharp包,然后运行命令npm install
关于reactjs - Gatsby 开发 : Something went wrong installing the "sharp" module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64233792/
我正在尝试将微信社交登录集成到我的网站,但我不确定为什么它不起作用。 当我在浏览器上访问 URL 时,会出现以下屏幕 我期待的是: 这是我试图访问的网址: https://open.weixin.qq
我创建了一个expo应用程序使用 exp init MyApp 命令,并通过在 MyApp 目录中运行 exp start 启动它。 然后我正在扫描在控制台中打印的条形码 expo Android 设
我是非常新的 android 开发人员。我正在使用 Visual Studio 2017 和 Xamarin。在设计器中打开 activity_main.axml 时遇到问题。我能够在模拟器中调试应用
我正在制作一个使用 Facebook 登录的应用程序。我让登录独立工作,但现在将它与我的其他 Activity 集成时,它不会登录。它带有错误消息“抱歉,出了点问题。我们正在处理它,我们会尽快修复它”
因此,我的类(class)接受了数据并完成了工作,如果发生任何错误,则返回错误消息。如果一切顺利,我应该怎么做?空值? “1”? “好!”? “成功”? 请支持您的答案。 最佳答案 Unix标准返回码
使用 Android Studio,我向 github 添加了一个项目——源代码和 apk。然后我尝试发布它,希望将 apk 作为单个可下载 Assets 。 但是,当我将我的 apk 拖到发布表单时
我使用 Expo XDE 创建了一个项目。我检查了这个 Can't load expo app: Something went wrong但我已经启用了“绘制其他应用程序”。有效 https://ex
编辑:我不认为链接的问题回答了我的问题。这是摘要 当我做 > ./phantomjs/bin/phantomjs phantomjs> # this is the phantomjs shell so
我们的网络应用程序允许用户通过Facebook登录。从技术上讲,我们正在使用Facebook OAuth2。我们两年前已经实施了此登录过程。直到2015年11月13日,它都可以正常工作,但是从那天起,
我正在使用 Create React App 构建 Excel 插件。该加载项在 macOS 版 Excel 中运行良好。 The Repo 但是,当我尝试在 Excel Online 中加载它时。上
我正在尝试在我的应用程序中实现 Facebook 登录,但我遇到了一个非常特殊的问题,登录过程开始时失败,并显示一条非常神秘的消息,并且我的应用程序端没有抛出异常,所以我不'不知道发生了什么。 我怀疑
输出 aaaaaa Something went wrong, please try again. 代码: import telegram TOKEN = "xxxxxxxxxxxxxY"
我得到错误: "something went wrong on our end. please try again" 虽然我在我的代码中输入了真实的产品 ID,但是当我使用测试产品 ID 时它起作用了
我正在使用gradle 3.1和 ./gradlew build --stacktrace 我得到以下输出。这是什么意思?你见过这个错误吗? Starting a Gradle Daemon (sub
我已经安装了这个插件https://github.com/shopware/swag-docs-storefront-controller在开发模板中,但是当我运行它并尝试清除购物车时,它重定向到 u
我已经安装了这个插件https://github.com/shopware/swag-docs-storefront-controller在开发模板中,但是当我运行它并尝试清除购物车时,它重定向到 u
给定这个示例数据集: ----------------------------- | item | date | val | -----------------------------
我刚刚在 Gatsby 上对入门模板进行了 git clone - 当我运行“gatsby develop”时遇到了这个错误。我已经删除了节点模块,以及节点模块中的sharp模块。无济于事。 请让我知
我很难通过 API key 使用 Google Places API 自动完成功能。在我的生产站点中,我们在没有 key 的情况下使用它,在流量达到请求限制之前完美运行。经过一些研究,发现我会使用 A
我正在使用 django 在 Facebook 上分享页面。我使用下面的代码来获取 url var link = 'https://www.facebook.com/dialog/feed?app_i
我是一名优秀的程序员,十分优秀!