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

Cannot install Z2M via openhabian-config on fresh install #1943

Closed
LoMAGo opened this issue Jan 7, 2025 · 1 comment
Closed

Cannot install Z2M via openhabian-config on fresh install #1943

LoMAGo opened this issue Jan 7, 2025 · 1 comment

Comments

@LoMAGo
Copy link

LoMAGo commented Jan 7, 2025

There is no package-lock.json file in the Z2M repo. Thus, npm ci fails.

$ sudo -u openhabian npm ci

  • sudo -u openhabian npm ci
    npm ERR! code EUSAGE
    npm ERR!
    npm ERR! The npm ci command can only install with an existing package-lock.json or
    npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
    npm ERR! later to generate a package-lock.json file, then try again.
    npm ERR!
    npm ERR! Clean install a project
    npm ERR!
    npm ERR! Usage:
    npm ERR! npm ci
    npm ERR!
    npm ERR! Options:
    npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
    npm ERR! [-E|--save-exact] [-g|--global] [--install-strategy <hoisted|nested|shallow>]
    npm ERR! [--legacy-bundling] [--global-style]
    npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
    npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
    npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
    npm ERR! [-w|--workspace [-w|--workspace ...]]
    npm ERR! [-ws|--workspaces] [--include-workspace-root] [--no-install-links]
    npm ERR!
    npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
    npm ERR!
    npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR! /home/openhabian/.npm/_logs/2025-01-05T16_24_50_497Z-debug-0.log

  • return 1
  • echo 'FAILED (npm ci)'
    FAILED (npm ci)
  • return 1
  • RET=1
  • '[' 1 -ne 0 ']'
  • whiptail --msgbox 'There was an error or interruption during the execution of:\n "20 | Optional Components"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how to proceed.' 14 80
  • return 0
@ecdye
Copy link
Contributor

ecdye commented Jan 13, 2025

This should be resolved for now by #1946

@ecdye ecdye closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants