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