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

Error when installing on ARM #7

Open
Mathew444 opened this issue Oct 20, 2024 · 2 comments
Open

Error when installing on ARM #7

Mathew444 opened this issue Oct 20, 2024 · 2 comments

Comments

@Mathew444
Copy link

Describe the bug
I cant seem to get npm install to work, im an pretty sure i have every dependency needed and tried a few times on different versions.

mat@ubuntu:~/Documents/tiktok/auto-shorts$ npm install
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: Removed event-stream from gulp-header
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated [email protected]: this library is no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated [email protected]: Use your platform's native DOMException instead
npm warn deprecated [email protected]: use String.prototype.padStart()
npm warn deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm warn deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm warn deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm warn deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: request has been deprecated, see request/request#3142
npm warn deprecated [email protected]: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See ladjs/superagent#1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net
npm warn deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
npm warn deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
npm error code 1
npm error path /home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/gl
npm error command failed
npm error command sh -c prebuild-install || node-gyp rebuild
npm error make: Entering directory '/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/gl/build'
npm error CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
npm error make: Leaving directory '/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/gl/build'
npm error prebuild-install warn install No prebuilt binaries found (target=18.20.4 runtime=node arch=arm64 libc= platform=linux)
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | arm64
npm error gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/gl/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/mat/.cache/node-gyp/18.20.4/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/home/mat/.cache/node-gyp/18.20.4',
npm error gyp info spawn args '-Dnode_gyp_dir=/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/home/mat/.cache/node-gyp/18.20.4/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/gl',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../angle/src/common/debug.h:16,
npm error from ../angle/src/common/mathutil.h:12,
npm error from ../angle/src/common/Float16ToFloat32.cpp:9:
npm error ../angle/src/common/angleutils.h:36:14: error: \u2018uintptr_t\u2019 does not name a type
npm error 36 | extern const uintptr_t DirtyPointer;
npm error | ^~~~~~~~~
npm error ../angle/src/common/angleutils.h:21:1: note: \u2018uintptr_t\u2019 is defined in header \u2018\u2019; did you forget to \u2018#include \u2019?
npm error 20 | #include
npm error +++ |+#include
npm error 21 |
npm error make: *** [angle/src/angle_common.target.mk:157: Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: make failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.onExit (/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/node-gyp/lib/build.js:203:23)
npm error gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm error gyp ERR! System Linux 6.8.0-47-generic
npm error gyp ERR! command "/home/mat/.nvm/versions/node/v18.20.4/bin/node" "/home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /home/mat/Documents/tiktok/auto-shorts/packages/inkpaint/node_modules/gl
npm error gyp ERR! node -v v18.20.4
npm error gyp ERR! node-gyp -v v9.4.1
npm error gyp ERR! not ok

npm error A complete log of this run can be found in: /home/mat/.npm/_logs/2024-10-20T12_46_43_299Z-debug-0.log

Desktop (please complete the following information):

  • OS: i am running a Ubuntu VM on MacOS with a m2 chip
  • Runtime node
  • Version currently 18 but i tried different versions.
    Thank you for your help! Let me know if you need any more information to assess this issue better.
@alamshafil
Copy link
Owner

Since you are running a Ubuntu ARM VM, there are no pre-built binaries for the native package gl which is required to render the video.

When looking at the logs, it looks like it failed to compile the gl native package. Make sure your packages are updated (apt update && apt upgrade) and you have installed the required system packages.

Make sure you have these system packages installed (from https://www.npmjs.com/package/gl)

sudo apt install build-essential libxi-dev libglu1-mesa-dev libglew-de

If that still does not fix your issue, then further debugging is required on why it is failing to build the gl C++ code. Manual code patches may be required for ARM CPUs.

@Mathew444
Copy link
Author

Thank you for your response, i made sure that i had every package installed and everything is up to date. Unfortunately the error persists.

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