HumanSignal / HumanSignal/label-studio

Following frontend#readme lead to Error: Cannot find module 'puppeteer/internal/node/install.js'

Open
#4,223 5 comments 0 reactions 1 assignee Claimed by @makseq View on GitHub
documentation problem
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
I follow https://github.com/heartexlabs/label-studio/tree/develop/label_studio/frontend#readme in clean develop branch and can't build the frontend.

**To Reproduce**
> npm ci
npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.

I fix it with
npm install --package-lock-only

> npm ci

> puppeteer@19.11.1 postinstall /data/lib/labelig/label-studio/label_studio/frontend/node_modules/puppeteer
> node install.js

Browser download failed { Error: Cannot find module 'puppeteer/internal/node/install.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/data/lib/labelig/label-studio/label_studio/frontend/node_modules/puppeteer/install.js:39:29)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }
added 1528 packages in 10.254s

**Expected behavior**
following https://github.com/heartexlabs/label-studio/tree/develop/label_studio/frontend#readme should give no errors

**Environment (please complete the following information):**
- OS: Ubuntu 20.04.6 LTS
- Label Studio Version 1.5.0dev
- NPM 6.14.4

**Additional context**
I want to change opacity of BrushLabel from 0.6 to 0.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.