node-webrtc-examples
node-webrtc-examples copied to clipboard
npm install issue
I'm running on Ubuntu x86 22.04. It looks like it may be a problem with canvas but I'm not sure how to fix it. Any suggestions are welcomed! Thanks in advance.
$ npm i
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
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]: Redundant dependency in your project.
npm WARN deprecated [email protected]: support for ECMAScript is superseded by uglify-js
as of v3.13.0
npm ERR! code 1
npm ERR! path xxxnode-webrtc-examples/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
npm ERR! A complete log of this run can be found in: xxx/.npm/_logs/2023-09-18T12_45_38_462Z-debug-0.log
$ tail -40 .npm/_logs/2023-09-18T12_45_38_462Z-debug-0.log
2916 timing build:link:node_modules/tape Completed in 4ms
2917 timing build:link:node_modules/uglify-es Completed in 4ms
2918 timing build:link:node_modules/umd Completed in 4ms
2919 timing build:link:node_modules/undeclared-identifiers Completed in 4ms
2920 timing build:link:node_modules/uuid Completed in 4ms
2921 timing build:link:node_modules/watchify Completed in 4ms
2922 timing build:link:node_modules/which Completed in 4ms
2923 timing build:link Completed in 5ms
2924 info run [email protected] install node_modules/canvas node-pre-gyp install --fallback-to-build --update-binary
2925 info run [email protected] install node_modules/wrtc node scripts/download-prebuilt.js
2926 info run [email protected] install { code: 1, signal: null }
2927 info run [email protected] install { code: 1, signal: null }
2928 timing reify:rollback:createSparse Completed in 109ms
2929 timing reify:rollback:retireShallow Completed in 0ms
2930 timing command:i Completed in 16152ms
2931 verbose stack Error: command failed
2931 verbose stack at ChildProcess.
$ node-pre-gyp -v v0.17.0