node-webrtc-examples icon indicating copy to clipboard operation
node-webrtc-examples copied to clipboard

npm install issue

Open mwolfeu opened this issue 9 months ago • 0 comments

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. (/snap/node/7707/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27) 2931 verbose stack at ChildProcess.emit (node:events:514:28) 2931 verbose stack at maybeClose (node:internal/child_process:1091:16) 2931 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:302:5) 2932 verbose pkgid [email protected] 2934 verbose Linux 5.19.0-50-generic 2935 verbose node v18.17.1 2936 verbose npm v9.6.7 2937 error code 1 2938 error path xxx/node-webrtc-examples/node_modules/canvas 2939 error command failed 2940 error command sh -c node-pre-gyp install --fallback-to-build --update-binary 2941 verbose exit 1 2942 timing npm Completed in 16239ms 2943 verbose unfinished npm timer reify 1695041138548 2944 verbose unfinished npm timer reify:build 1695041154498 2945 verbose unfinished npm timer build 1695041154499 2946 verbose unfinished npm timer build:deps 1695041154499 2947 verbose unfinished npm timer build:run:install 1695041154509 2948 verbose unfinished npm timer build:run:install:node_modules/canvas 1695041154509 2949 verbose unfinished npm timer build:run:install:node_modules/wrtc 1695041154520

$ node-pre-gyp -v v0.17.0

mwolfeu avatar Sep 18 '23 13:09 mwolfeu