{"id":121,"hash":"e6a0be762c127ed1c440e1361014eebd874d4955d601a929456165bb4e782474","pattern":"How to ignore incompatible engine &quot;node&quot; error on installing npm dependencies with yarn?","full_message":"Given this package.json:\n\n{\n  \"name\": \"yarn-install-fail\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {},\n  \"author\": \"\",\n  \"license\": \"ISC\",\n  \"dependencies\": {\n    \"aws-sdk\": \"2.x.x\",\n    \"s3-streams\": \"^0.3.0\"\n  }\n}\n\nI can install the dependencies successfully via npm:\n\n$ npm install\n\nadded 27 packages in 1.844s\n\nYet yarn fails:\n\n$ yarn install\nyarn install v0.24.5\ninfo No lockfile found.\n[1/4] Resolving packages...\n[2/4] Fetching packages...\nerror s3-streams@0.3.0: The engine \"node\" is incompatible with this module. Expected version \"^1.2.0\".\nerror Found incompatible module\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n\nIt appears yarn has trouble installing the library s3-streams@0.3.0, yet I assumed it would fallback to install all the dependencies anyway like npm would.","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"You can indeed ignore such errors via --ignore-engines:\n\n$ yarn install --ignore-engines\nyarn install v0.24.5\ninfo No lockfile found.\n[1/4] Resolving packages...\n[2/4] Fetching packages...\n[3/4] Linking dependencies...\n[4/4] Building fresh packages...\nsuccess Saved lockfile.\nDone in 1.41s.\n\nThis is also documented in the command's help:\n\n$ yarn help | grep -- --ignore\n    --ignore-scripts                  don't run lifecycle scripts\n    --ignore-platform                 ignore platform checks\n    --ignore-engines                  ignore engines check\n    --ignore-optional                 ignore optional dependencies","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/45088031/how-to-ignore-incompatible-engine-node-error-on-installing-npm-dependencies-wi","votes":141,"created_at":"2026-04-19T04:41:21.900819+00:00","updated_at":"2026-04-19T04:51:03.649483+00:00"}