添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱看书的卤蛋  ·  Cannot build ...·  1 周前    · 
健壮的回锅肉  ·  Faster Startup Times ...·  5 天前    · 
干练的硬币  ·  node-gyp使用帮助 | Jack ...·  5 天前    · 
骑白马的葡萄  ·  Namespace not ...·  3 天前    · 
寂寞的芹菜  ·  Error Codes | AltStore·  4 月前    · 
飘逸的小熊猫  ·  golang日志库·  5 月前    · 
坚强的煎鸡蛋  ·  Configuring ...·  7 月前    · 

sorry for my eng,
i get this message when i try to build on netlify.

5:39:08 PM: build-image version: 5b0ab77c5e46895703390c45e86a907d4b78547b (focal)

5:39:08 PM: buildbot version: 5b0ab77c5e46895703390c45e86a907d4b78547b

5:39:08 PM: Fetching cached dependencies

5:39:08 PM: Starting to download cache of 218.2MB

5:39:09 PM: Finished downloading cache in 1.408s

5:39:09 PM: Starting to extract cache

5:39:14 PM: Finished extracting cache in 4.543s

5:39:14 PM: Finished fetching cache in 6.039s

5:39:14 PM: Starting to prepare the repo for build

5:39:14 PM: Preparing Git Reference refs/heads/test

5:39:15 PM: Parsing package.json dependencies

5:39:16 PM: Starting build script

5:39:16 PM: Installing dependencies

5:39:16 PM: Python version set to 2.7

5:39:16 PM: Started restoring cached Node.js version

5:39:17 PM: Finished restoring cached Node.js version

5:39:17 PM: v12.18.0 is already installed.

5:39:17 PM: Now using node v12.18.0 (npm v6.14.4)

5:39:17 PM: Started restoring cached build plugins

5:39:17 PM: Finished restoring cached build plugins

5:39:17 PM: Attempting Ruby version 2.7.2, read from environment

5:39:18 PM: Using Ruby version 2.7.2

5:39:18 PM: Using PHP version 8.0

5:39:18 PM: Started restoring cached corepack dependencies

5:39:18 PM: Finished restoring cached corepack dependencies

5:39:18 PM: Started restoring cached yarn cache

5:39:23 PM: Finished restoring cached yarn cache

5:39:23 PM: No yarn workspaces detected

5:39:23 PM: Started restoring cached node modules

5:39:23 PM: Finished restoring cached node modules

5:39:23 PM: Installing npm packages using Yarn version 1.22.10

5:39:23 PM: yarn install v1.22.10

5:39:23 PM: [1/5] Validating package.json…

5:39:23 PM: error iclicre@0.1.0: The engine “node” is incompatible with this module. Expected version “>=14.0.0 <20”. Got “12.18.0”

5:39:23 PM: error Found incompatible module.

5:39:23 PM: info Visit yarn install | Yarn for documentation about this command.

5:39:23 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1 ( Search results for '"non-zero exit code: 1"' - Netlify Support Forums )

5:39:23 PM: Error during Yarn install

5:39:23 PM: Build was terminated: Build script returned non-zero exit code: 1

5:39:23 PM: Failing build: Failed to build site

5:39:23 PM: Finished processing build request in 15.88s

am not a pro of node, i try to read the doc on environement variable but am not sure its the good solution.
TY for help

d1991:

5:39:23 PM: error iclicre@0.1.0: The engine “node” is incompatible with this module. Expected version “>=14.0.0

You need to upgrade your Node Version: Manage build dependencies | Netlify Docs

Hi, thx for the answer.

i already uppate node. when i use “node -v” command in terminal, the answer given to me is " v18.13.0" .
i may haved miss something.
when i build on netlify, it say iv got 12.18.0

Ty for your answer,
sry i didnt see the doc @hrishikesh linked me

i read the doc, but clearly am not a pro. i understood that i have to set an environement variable NODE_VERSION but i dont know how.
When i go on netlify site in Environment variables set, it ask me a key and value but i dont know what i have to set.
i tryed with .env file but i dont know what i have to write in the file.

i dont know the simplest way to implemant environment variable.
i dont even know a way to do it.
Sorry, i guess its dumb ( and I probably am too

@d1991 You’re not dumb, everything is hard until it’s easy.

Learning to search and read the Documentation will get you a long way…

There’s a section within your Build settings in the Netlify UI which lets you set Environment Variables.