shyim / shopware-docker

Easy to use Docker Installation for Shopware 5 and Shopware 6
MIT License
115 stars 27 forks source link

Cannot use admin commands for < 6.4 #146

Closed zaifastafa closed 2 years ago

zaifastafa commented 2 years ago

, I m not able to complete the setup for shopware installations for version < 6.4 using standard swdc build command.

For e.g. running swdc admin-init sw63 gives this

Installing Node v12.22.12 (x64)
warning: Version already installed at "/nvm/.debian-fnm/node-versions/v12.22.12"
Using Node v12.22.12
Using Node v6.17.1

Usage: npm <command>

where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
    help, help-search, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, prune, publish, rb, rebuild, repo, restart, root,
    run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, tag, team, test, tst, un, uninstall,
    unpublish, unstar, up, update, v, version, view, whoami

npm <cmd> -h     quick help on <cmd>
npm -l           display full usage info
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    /home/dev/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@3.10.10 /nvm/.debian-fnm/node-versions/v6.17.1/installation/lib/node_modules/npm

> @shopware/administration@1.0.0 lerna /var/www/html/sw63/vendor/shopware/administration/Resources
> lerna "bootstrap"

sh: 1: lerna: not found

npm ERR! Linux 5.13.0-40-generic
npm ERR! argv "/nvm/.debian-fnm/node-versions/v6.17.1/installation/bin/node" "/home/dev/.local/state/fnm_multishells/23_1651735813145/bin/npm" "run" "--prefix" "vendor/shopware/administration//Resources" "lerna" "--" "bootstrap"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @shopware/administration@1.0.0 lerna: `lerna "bootstrap"`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @shopware/administration@1.0.0 lerna script 'lerna "bootstrap"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the @shopware/administration package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     lerna "bootstrap"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs @shopware/administration
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls @shopware/administration
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
shyim commented 2 years ago

https://github.com/shyim/shopware-docker/commit/96bc72566cefcef5d236770f2f46389ad67f1ea7

zaifastafa commented 2 years ago

@shyim admin-watch still does not work.

shyim commented 2 years ago

https://github.com/shyim/shopware-docker/commit/380139547213e323239f6172fda5c77bbba5279a

zaifastafa commented 2 years ago

image

@shyim same for admin-build as well.