Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Warnings and error when installing (pnpm) (on Mac) #1993

Open
MacDada opened this issue Apr 18, 2024 · 0 comments
Open

[Bug]: Warnings and error when installing (pnpm) (on Mac) #1993

MacDada opened this issue Apr 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MacDada
Copy link
Contributor

MacDada commented Apr 18, 2024

What happened?

I've been trying to install/develop the project on my computer.
I've downloaded the latest dev branch: https://github.com/nurikk/zigbee2mqtt-frontend/tree/f0a2cf573f5a2d09d8262de2ba958fd534dba55e

I've run pnpm install per instruction. It resulted in the zsh: command not found: pnpm error, so I've decided to install pnpm by using Corepack.

It prompted the following issues:

  • WARN  Issue while reading "/Users/dada/Documents/projects/forks/zigbee2mqtt-frontend/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
    Lockfile is up to date, resolution step is skipped
    
  • WARN  Broken lockfile: no entry for '@rjsf/bootstrap-5@https://github.com/nurikk/fileshare/blob/main/rjsf-bootstrap-5-4.2.0.tgz?raw=true(@rjsf/core@4.2.3)(react-bootstrap@2.10.0)(react@18.2.0)' in pnpm-lock.yaml
    
  •  ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY  The lockfile is broken! Resolution step will be performed to fix it.
    
  • WARN  Could not find preferred package @rjsf/bootstrap-5@https://github.com/nurikk/fileshare/blob/main/rjsf-bootstrap-5-4.2.0.tgz?raw=true(@rjsf/core@4.2.3)(react-bootstrap@2.10.0)(react@18.2.0) in lockfile
    

Full log:

➜  zigbee2mqtt-frontend git:(dev) brew install nodejs
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################################################################################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################################################################################################################################## 100.0%
Warning: node 21.7.3 is already installed and up-to-date.
To reinstall 21.7.3, run:
  brew reinstall node
➜  zigbee2mqtt-frontend git:(dev) brew install corepack
==> Downloading https://ghcr.io/v2/homebrew/core/corepack/manifests/0.26.0
######################################################################################################################################################################################## 100.0%
==> Fetching corepack
==> Downloading https://ghcr.io/v2/homebrew/core/corepack/blobs/sha256:219e79e0fe176eb914e0d895851558229827911b43ceaa6abfdf08c5971e5067
######################################################################################################################################################################################## 100.0%
==> Pouring corepack--0.26.0.all.bottle.tar.gz
🍺  /opt/homebrew/Cellar/corepack/0.26.0: 68 files, 1MB
==> Running `brew cleanup corepack`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
➜  zigbee2mqtt-frontend git:(dev) corepack use pnpm@latest
Installing pnpm@9.0.3 in the project...

 WARN  Issue while reading "/Users/dada/Documents/projects/forks/zigbee2mqtt-frontend/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
Lockfile is up to date, resolution step is skipped
 WARN  Broken lockfile: no entry for '@rjsf/bootstrap-5@https://github.com/nurikk/fileshare/blob/main/rjsf-bootstrap-5-4.2.0.tgz?raw=true(@rjsf/core@4.2.3)(react-bootstrap@2.10.0)(react@18.2.0)' in pnpm-lock.yaml
 ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY  The lockfile is broken! Resolution step will be performed to fix it.
 WARN  Could not find preferred package @rjsf/bootstrap-5@https://github.com/nurikk/fileshare/blob/main/rjsf-bootstrap-5-4.2.0.tgz?raw=true(@rjsf/core@4.2.3)(react-bootstrap@2.10.0)(react@18.2.0) in lockfile
Downloading typescript@5.2.2: 7.23 MB/7.23 MB, done
Downloading react-icons@4.11.0: 21.06 MB/21.06 MB, done
Packages: +881
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 936, reused 0, downloaded 881, added 881, done
node_modules/.pnpm/core-js@3.33.0/node_modules/core-js: Running postinstall script, done in 61ms
node_modules/.pnpm/core-js-pure@3.33.0/node_modules/core-js-pure: Running postinstall script, done in 59ms
node_modules/.pnpm/@fortawesome+fontawesome-free@6.4.2/node_modules/@fortawesome/fontawesome-free: Running postinstall script, done in 57ms
node_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild: Running postinstall script, done in 340ms
node_modules/.pnpm/@serialport+bindings-cpp@12.0.1/node_modules/@serialport/bindings-cpp: Running install script, done in 724ms
node_modules/.pnpm/esbuild@0.19.12/node_modules/esbuild: Running postinstall script, done in 275ms

> zigbee2mqtt-frontend@0.6.162 postinstall /Users/dada/Documents/projects/forks/zigbee2mqtt-frontend
> husky install

husky - Git hooks installed

devDependencies:
+ @codemirror/lang-javascript 6.2.2
+ @commitlint/cli 17.8.1
+ @commitlint/config-conventional 17.8.1
+ @ebay/nice-modal-react 1.2.13
+ @fortawesome/fontawesome-free 6.4.2
+ @rjsf/bootstrap-5 4.2.0
+ @rjsf/core 4.2.3
+ @testing-library/jest-dom 6.3.0
+ @testing-library/react 14.1.2
+ @testing-library/user-event 14.5.2
+ @types/color-convert 2.0.3
+ @types/d3-drag 3.0.7
+ @types/d3-force 3.0.9
+ @types/d3-selection 3.0.10
+ @types/d3-zoom 3.0.5
+ @types/events 3.0.1
+ @types/file-saver 2.0.5
+ @types/json-schema 7.0.13
+ @types/lodash 4.14.199
+ @types/react 18.2.61
+ @types/react-dom 18.2.19
+ @types/react-router-dom 5.3.3
+ @types/react-table 7.7.16
+ @types/react-transition-group 4.4.7
+ @types/reconnectingwebsocket 1.0.8
+ @types/ws 8.5.6
+ @typescript-eslint/eslint-plugin 6.7.4
+ @typescript-eslint/parser 6.7.4
+ @uiw/codemirror-theme-github 4.21.24
+ @uiw/react-codemirror 4.21.24
+ @vitejs/plugin-react 4.1.0
+ @vitest/coverage-v8 1.3.1
+ bootstrap 5.3.2
+ classnames 2.3.2
+ color-convert 2.0.1
+ conventional-changelog-cli 4.1.0
+ d3-drag 3.0.0
+ d3-force 3.0.0
+ d3-force-reuse 1.0.1
+ d3-selection 3.0.0
+ d3-zoom 3.0.0
+ deep-diff 1.0.2
+ eslint 8.57.0
+ eslint-config-prettier 9.0.0
+ eslint-config-react 1.1.7
+ eslint-plugin-prettier 5.0.0
+ eslint-plugin-react 7.33.2
+ eslint-plugin-react-refresh 0.4.5
+ events 3.3.0
+ file-saver 2.0.5
+ husky 8.0.3
+ i18next 23.5.1
+ i18next-browser-languagedetector 7.1.0
+ jsdom 24.0.0
+ jszip 3.10.1
+ lodash 4.17.21
+ notyf 3.10.0
+ pinst 3.0.0
+ prettier 3.0.3
+ react 18.2.0
+ react-app-polyfill 3.0.0
+ react-bootstrap 2.10.0
+ react-css-theme-switcher 0.3.0
+ react-dom 18.2.0
+ react-i18next 13.5.0
+ react-image 4.1.0
+ react-notifications-component 4.0.1
+ react-router-dom 5.3.4
+ react-table 7.8.0
+ react-transition-group 4.4.5
+ reconnecting-websocket 4.4.0
+ sass 1.71.1
+ store2 2.14.2
+ timeago.js 4.0.2
+ typescript 5.2.2
+ unistore 3.5.2
+ vite 4.5.2
+ vite-plugin-compression 0.5.1
+ vite-plugin-html 3.2.0
+ vite-plugin-sass-dts 1.3.11
+ vitest 1.3.1
+ ws 8.14.2
+ zigbee-herdsman 0.35.0
+ zigbee-herdsman-converters 15.132.0

Done in 29.3s

My setup:

  • MacOS Sonoma 14.3.1
  • Homebrew 4.2.18
  • nodejs v21.7.3
  • pnpm 9.0.3

What browsers are you seeing the problem on?

Chrome

Relevant stacktrace

No response

Did you download state.json.zip?

I will attach state.json.zip

@MacDada MacDada added the bug Something isn't working label Apr 18, 2024
@MacDada MacDada changed the title [Bug]: Warnings and error when installing (pnpm) on Mac [Bug]: Warnings and error when installing (pnpm) (on Mac) Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant