【问题标题】:Error: No native build was found for platform=win32 arch=x64 runtime=node abi=108 uv=1 libc=glibc node=18.7.0错误:未找到平台=win32 arch=x64 runtime=node abi=108 uv=1 libc=glibc node=18.7.0 的本机构建
【发布时间】:2022-11-08 12:38:58
【问题描述】:

我正在尝试使用“npm run dev”命令运行内容启动应用程序。我收到以下错误。我对 npm 有点陌生。请帮助我,如果您能提出任何解决方案,那就太好了。谢谢

这些是我在运行“npm run dev”之前执行的命令

npm install -g gatsby-cli
gatsby new contentful-starter https://github.com/contentful/starter-gatsby-blog
cd contentful-starter
npm run setup
npm run dev
Error: No native build was found for platform=win32 arch=x64 runtime=node abi=108 uv=1 libc=glibc node=18.7.0
loaded from: D:\contentful\contentful-starter\node_modules\gatsby\node_modules\lmdb

at Function.load.path (D:\contentful\contentful-starter\node_modules\node-gyp-build\index.js:60:9)
at load (D:\contentful\contentful-starter\node_modules\node-gyp-build\index.js:22:30)
at Object.<anonymous> (D:\contentful\contentful-starter\node_modules\gatsby\node_modules\lmdb\node-index.js:17:45)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1022:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\contentful\contentful-starter\node_modules\gatsby\src\util

【问题讨论】:

    标签: npm platform


    【解决方案1】:

    问题是 lmdb-store 中缺少您环境的二进制文件。尝试使用 Node 版本 17。它对我有用。

    【讨论】:

      【解决方案2】:

      你应该首先检查确保你的二进制文件已经被 NPM 正确安装,你的二进制文件应该在D:contentfulcontentful-starter ode_modulesgatsby ode_moduleslmdblmdb-win32-x64,如果没有,你可以通过npm install @lmdb/lmdb-win32-x64 安装

      【讨论】:

        猜你喜欢
        • 2020-04-04
        • 1970-01-01
        • 2014-02-28
        • 1970-01-01
        • 1970-01-01
        • 2020-06-24
        • 2021-09-17
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多