OSDK application network error when building application

Hey all I’m getting the following error when trying to build and OSDK application, I tried updating the registry url via .npmrc, logged in again to Foundry but the application does not build

This happens to other OSDK projects as well!

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'package_name@10.2.2',
npm WARN EBADENGINE   required: { node: '^20.9.0 || ^22.11.0 || ^24.11.0' },
npm WARN EBADENGINE   current: { node: 'v18.18.0', npm: '9.8.1' }
npm WARN EBADENGINE }
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://foundry-url/artifacts/api/repositories/ri.artifacts.main.repository.npm_***/contents/release/npm/:_authToken=<token>/@project_name%2fsdk failed, reason: getaddrinfo ENOTFOUND foundry_url
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in: /home/ptdocker/.npm/_logs/2026-01-13T11_31_29_376Z-debug-0.log

Has anyone faced similar issue, any advice on how to troubleshoot this would be highly appreciated!

When trying to do npm install I get the below error

14:18:00 ~/repo (test_branch )$ npm install
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: ‘package_name@10.2.2’,
npm warn EBADENGINE required: { node: ‘^20.9.0 || ^22.11.0 || ^24.11.0’ },
npm warn EBADENGINE current: { node: ‘v18.20.8’, npm: ‘10.8.2’ }
npm warn EBADENGINE }
npm error code E400
npm error 400 Bad Request - GET https://foundry-url/artifacts/api/repositories/ri.artifacts.main.repository.
**/contents/release/npm/:_authToken=*auth token value removed*** /@project_name%2fsdk
npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-01-14T14_18_08_482Z-debug-0.log

Hey all I’m getting the following error when trying to build and OSDK application, I tried updating the registry url via .npmrc, logged in again to Foundry but the appl

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'package_name@10.2.2',
npm WARN EBADENGINE   required: { node: '^20.9.0 || ^22.11.0 || ^24.11.0' },
npm WARN EBADENGINE   current: { node: 'v18.18.0', npm: '9.8.1' }
npm WARN EBADENGINE }
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://foundry-url/artifacts/api/repositories/ri.artifacts.main.repository.npm_***/contents/release/npm/:_authToken=<token>/@project_name%2fsdk failed, reason: getaddrinfo ENOTFOUND foundry_url
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in: /home/ptdocker/.npm/_logs/2026-01-13T11_31_29_376Z-debug-0.log

Has anyone faced similar issue, any advice on how to troubleshoot this would be highly appreciated!

This sounds like you are unable to download the osdk package because you’ve not got the token set locally, for the curl made to download the osdk to succeed. Have you tried that yet?

Hi @srhodes thanks you for the advice. I have not yet tried to set the token locally. How can I do that? I’m sorry if this is a very basic thing I should know but I’ve not worked with the OSDK locally!