简体   繁体   English

错误:未找到平台=win32 arch=x64 runtime=node abi=108 uv=1 libc=glibc node=18.7.0 的本机构建

[英]Error: No native build was found for platform=win32 arch=x64 runtime=node abi=108 uv=1 libc=glibc node=18.7.0

I am trying to run contentful-starter applation using "npm run dev" command.我正在尝试使用“npm run dev”命令运行 contentful-starter applation。 I am getting the below error.我收到以下错误。 I am littlebit new to npm. Kindly help me, it would be great if you can suggest any solution.我是 npm 的新手。请帮助我,如果您能提出任何解决方案,那就太好了。 Thank you谢谢

These are the commands I executed before running "npm run dev"这些是我在运行“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

The problem is that binary for your environment is missing in lmdb-store.问题是 lmdb-store 中缺少您环境的二进制文件。 Try it with Node version 17. It worked for me.尝试使用 Node 版本 17。它对我有用。

you should check to make sure your binaries have been properly installed by NPM first, your binary should be at D:\contentful\contentful-starter\node_modules\gatsby\node_modules\lmdb\lmdb-win32-x64 , if not, you can install by npm install @lmdb/lmdb-win32-x64你应该首先检查以确保你的二进制文件已经被 NPM 正确安装,你的二进制文件应该在D:\contentful\contentful-starter\node_modules\gatsby\node_modules\lmdb\lmdb-win32-x64 ,如果没有,你可以安装通过npm install @lmdb/lmdb-win32-x64

I had the same issue while trying to bring up my environment and suddenly received a.network error while the first npm i was going on.我在尝试启动我的环境时遇到了同样的问题,并且在我进行第一个 npm 时突然收到网络错误。

Quick solution, go to the node_modules folder, and wipe it all.快速解决,go到node_modules文件夹下,全部擦除。 Then run npm i again, most likely it will solve your issue.然后再次运行npm i ,它很可能会解决您的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复“fsevents@1.2.9 不支持的平台:需要 {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch":"x64" }) - How to fix 'Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) 如何修复 fsevents@2.1.3 不支持的平台:想要 {“os”:“darwin”,“arch”:“any”}(当前:{“os”:“win32”,“arch”:“x64”} ) - how to fix Unsupported platform for fsevents@2.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}) 跳过可选依赖:fsevents@1.2.9 不支持的平台:想要 {“os”:“darwin”,“arch”:“any”}(当前:{“os”:“win32”,“arch”:“x64” }) - SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}) 节点:/lib/x86_64-linux-gnu/libc.so.6:找不到版本“GLIBC_2.28”(节点需要) - Node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) 错误:Nodejs keytar.node 不是有效的 Win32 应用程序 - Error: Nodejs keytar.node is not a valid Win32 application fsevents@2.3.2 不受支持的平台:github 上需要 {"os":"darwin","arch":"any"}(当前:{"os":"linux","arch":"x64"})动作 - Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) on github actions “节点 Sass 尚不支持您当前的环境:Windows 64 位,运行时不受支持 (108)” - "Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (108)" 在Windows 8.1 x64上安装Node-Mapnik时出错 - Getting Error When Installing Node-Mapnik on Windows 8.1 x64 bcrypt-Windows 10 x64构建错误 - bcrypt - windows 10 x64 build error 平台 "win32" 与此模块 (fsevents) 不兼容 - The platform "win32" is incompatible with this module (fsevents)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM