lowlighter / metrics

📊 An infographics generator with 30+ plugins and 300+ options to display stats about your GitHub account and render them as SVG, Markdown, PDF or JSON!
https://metrics.lecoq.io
MIT License
13.46k stars 1.67k forks source link

Broken - Local Setup for Development #1598

Open sethlabadie opened 6 months ago

sethlabadie commented 6 months ago

Discussed in https://github.com/lowlighter/metrics/discussions/1597

Originally posted by **sethlabadie** February 15, 2024 Following these instructions, https://github.com/lowlighter/metrics/blob/master/.github/readme/partials/documentation/setup/local.md The install hangs at ```npm install``` I get the following output: ```npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead npm WARN deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details. > metrics@3.35.0-beta postinstall > node node_modules/puppeteer/install.js node:internal/modules/cjs/loader:1152 throw err; ^ Error: Cannot find module '/Users/sethlabadie/Dev/31_Metrics/metrics/node_modules/puppeteer/install.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15) at Module._load (node:internal/modules/cjs/loader:990:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v21.6.2 npm ERR! code 1 npm ERR! path /Users/sethlabadie/Dev/31_Metrics/metrics npm ERR! command failed npm ERR! command sh -c node node_modules/puppeteer/install.js npm ERR! A complete log of this run can be found in: /Users/sethlabadie/.npm/_logs/2024-02-16T00_38_16_759Z-debug-0.log ``` The module that it is looking for, ```node_modules/puppeteer/install.js```, is actually ```node_modules/puppeteer/install.mjs```. Changing the name of this file doesn't work, as it just reverts during the npm install process. Any ideas or help on how to solve this? Looks like it is more of an npm issue.