Skip to content

Broken - Local Setup for Development #1598

Open
@sethlabadie

Description

@sethlabadie

Discussed in #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 [email protected]: Use your platform's native DOMException instead
npm WARN deprecated [email protected]: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.

> [email protected] 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions