Composer-wrapper.php install --no-dev giving error

I have the no gui problem as well. When I run ./scripts/composer_wrapper.php install --no-dev as librenms

I get this:

LibreNMS\ComposerHelper::preUpdate
Running composer update is not advisable. Please run composer install to update instead.
If know what you are doing and want to write a new composer.lock file set FORCE=1.
If you don’t know what to do, run: composer install

@jody7734 can you post the output of ./validate.php?

$ ./validate.php

Component Version
LibreNMS 1.39-37-g5fd81db
DB Schema ?
PHP 7.0.28-0ubuntu0.16.04.1
MySQL ?
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

====================================

[FAIL] Missing dependencies! [FIX] ./scripts/composer_wrapper.php install --no-dev
vlucas/phpdotenv
symfony/css-selector
tijsverkoyen/css-to-inline-styles
symfony/polyfill-mbstring
symfony/var-dumper
symfony/routing
symfony/process
paragonie/random_compat
symfony/polyfill-php70
symfony/http-foundation
and 29 more…
[FAIL] Outdated dependencies [FIX] ./scripts/composer_wrapper.php install --no-dev
easybook/geshi
dapphp/radius
guzzlehttp/guzzle
symfony/event-dispatcher
symfony/yaml
[OK] Composer Version: 1.6.5
[FAIL] Missing dependencies!
[FIX] composer install --no-dev
Dependencies:
vlucas/phpdotenv
symfony/css-selector
tijsverkoyen/css-to-inline-styles
symfony/polyfill-mbstring
symfony/var-dumper
symfony/routing
symfony/process
paragonie/random_compat
symfony/polyfill-php70
symfony/http-foundation
psr/log
symfony/debug
symfony/http-kernel
symfony/finder
symfony/console
and 24 more…

Try this:

rm -rf vendor
./scripts/composer_wrapper.php install --no-dev

Same result
rm -rf vendor
$ ./scripts/composer_wrapper.php install --no-dev

LibreNMS\ComposerHelper::preUpdate
Running composer update is not advisable. Please run composer install to update instead.
If know what you are doing and want to write a new composer.lock file set FORCE=1.
If you don’t know what to do, run: composer install
$

how about git status

That got me going thanks.

$ git status
On branch master
Your branch is up-to-date with ‘origin/master’.
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)

    deleted:    composer.lock

Untracked files:
(use “git add …” to include in what will be committed)

    testdisk.log

no changes added to commit (use “git add” and/or “git commit -a”)

$ git checkout – composer.lock

Then I was able to run

$ ./scripts/composer_wrapper.php install --no-dev

Gui is working again.

Ah, that explains why it was trying to run an update instead of install. Glad it is working.

Thanks for your help.

1 Like