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

NPM version mismatch #110

Open
DmitriyValetov opened this issue Feb 26, 2024 · 1 comment
Open

NPM version mismatch #110

DmitriyValetov opened this issue Feb 26, 2024 · 1 comment

Comments

@DmitriyValetov
Copy link

Describe the bug
I have an error of npm version mismatch while building wasm example.

"ERROR: npm v10.4.0 is known not to run on Node.js v14.21.3. This version of npm supports the following node versions: ^18.17.0 || >=20.5.0. You can find the latest version at https://nodejs.org/."

To Reproduce

I'm going through https://github.com/paulocoutinhox/pdfium-lib/blob/master/docs/BUILD_WASM.md
with your Dockerfile https://github.com/paulocoutinhox/pdfium-lib/blob/master/docker/wasm/Dockerfile

Steps to reproduce the behavior:

  1. git clone https://github.com/paulocoutinhox/pdfium-lib.git
  2. cd pdfium-lib
  3. docker build -f ./docker/wasm/Dockerfile -t pdfium_wasm ./docker
  4. docker run --rm -it -p 8000:8000 -v $(pwd):/app pdfium_wasm bash
  5. python3 -m pip install -r requirements.txt
  6. python3 make.py build-depot-tools
  7. export PATH=$PATH:$PWD/build/depot-tools
  8. python3 make.py build-emsdk
  9. source "/app/build/emsdk/emsdk_env.sh"
  10. python3 make.py build-pdfium-wasm
  11. python3 make.py patch-wasm
  12. ./build/wasm32/pdfium/build/install-build-deps.sh
  13. python3 make.py build-wasm
  14. python3 make.py install-wasm
  15. python3 make.py test-wasm
  16. python3 make.py generate-wasm

"ERROR: npm v10.4.0 is known not to run on Node.js v14.21.3. This version of npm supports the following node versions: ^18.17.0 || >=20.5.0. You can find the latest version at https://nodejs.org/." happens here

Screenshots

image

Additional context

If this row https://github.com/paulocoutinhox/pdfium-lib/blob/master/docker/wasm/Dockerfile#L93 is commented - all works great

@paulocoutinhox
Copy link
Owner

Hi,

Project was updated to latest version and docker files too.

If your problem was solved, can you close the issue pls?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants