Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Fail to build onnxruntime-web NPM package #21542

Closed
JianxiaoLuIntel opened this issue Jul 29, 2024 · 2 comments
Closed

[Build] Fail to build onnxruntime-web NPM package #21542

JianxiaoLuIntel opened this issue Jul 29, 2024 · 2 comments
Labels
build build issues; typically submitted using template platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@JianxiaoLuIntel
Copy link

JianxiaoLuIntel commented Jul 29, 2024

Describe the issue

I am following the instruction(https://onnxruntime.ai/docs/build/web.html#install-npm-packages) to build ort-web npm package. But there are some errors.

Urgency

No response

Target platform

Ubuntu22.04

Build script

in <ORT_ROOT>/js/, run npm ci.
in <ORT_ROOT>/js/common/, run npm ci.
in <ORT_ROOT>/js/web/, run npm ci.

Error / output

Get error in <ORT_ROOT>/js/web/, run npm ci.

npm verb stack Error: command failed
npm verb stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27)
npm verb stack     at ChildProcess.emit (node:events:519:28)
npm verb stack     at maybeClose (node:internal/child_process:1105:16)
npm verb stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm verb pkgid [email protected]
npm verb cwd /home/test/onnxruntime/js/web
npm verb Linux 5.15.0-116-generic
npm verb node v20.16.0
npm verb npm  v8.19.2
npm ERR! code 1
npm ERR! path /home/test/onnxruntime/js/web/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm verb exit 1
npm timing npm Completed in 132176ms
npm verb unfinished npm timer reify 1722246699851
npm verb unfinished npm timer reify:build 1722246700607
npm verb unfinished npm timer build 1722246700607
npm verb unfinished npm timer build:deps 1722246700607
npm verb unfinished npm timer build:run:postinstall 1722246700618
npm verb unfinished npm timer build:run:postinstall:node_modules/electron 1722246700618
npm verb code 1

Visual Studio Version

No response

GCC / Compiler Version

No response

@JianxiaoLuIntel JianxiaoLuIntel added the build build issues; typically submitted using template label Jul 29, 2024
@github-actions github-actions bot added the platform:web issues related to ONNX Runtime web; typically submitted using template label Jul 29, 2024
@gyagp
Copy link

gyagp commented Jul 29, 2024

Do you have election in /home/test/onnxruntime/js/web/node_modules/? If no, it seems you have problem to download it. Within Intel, we use command "npx cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=http(s)://address:port npm install electron" to solve the issue.

@JianxiaoLuIntel
Copy link
Author

Do you have election in /home/test/onnxruntime/js/web/node_modules/? If no, it seems you have problem to download it. Within Intel, we use command "npx cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=http(s)://address:port npm install electron" to solve the issue.

It works, thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants