Shopware 6 lokale Installation

@DenKon26 schrieb:

Ich kriege es leider nach wie vor nicht zum laufen. Habe es jetzt in einer Vagrant Maschine geklont und dort Docker installiert.

beim Befehl

./psh.phar install

Bricht die Installation nach den Datenbank Operationen ab mit folgendem Error:

Unable to save binary /app/platform/src/Administration/Resources/administration/node_modules/node-sass/vendor/linux-x64-67 : { Error: EACCES: permission denied, mkdir ‚/app/platform/src/Administration/Resources/administration/node_modules/node-sass/vendor‘
at Object.mkdirSync (fs.js:773:3)
at sync (/app/platform/src/Administration/Resources/administration/node_modules/mkdirp/index.js:71:13)
at Function.sync (/app/platform/src/Administration/Resources/administration/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/app/platform/src/Administration/Resources/administration/node_modules/node-sass/scripts/install.js:114:11)
at Object. (/app/platform/src/Administration/Resources/administration/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
errno: -13,
syscall: ‚mkdir‘,
code: ‚EACCES‘,
path:
‚/app/platform/src/Administration/Resources/administration/node_modules/node-sass/vendor‘ }

node-sass@4.12.0 postinstall /app/vendor/shopware/platform/src/Administration/Resources/administration/node_modules/node-sass
node scripts/build.js

Building: /usr/bin/node /app/platform/src/Administration/Resources/administration/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‚/usr/bin/node‘,
gyp verb cli ‚/app/platform/src/Administration/Resources/administration/node_modules/node-gyp/bin/node-gyp.js‘,
gyp verb cli ‚rebuild‘,
gyp verb cli ‚–verbose‘,
gyp verb cli ‚–libsass_ext=‘,
gyp verb cli ‚–libsass_cflags=‘,
gyp verb cli ‚–libsass_ldflags=‘,
gyp verb cli ‚–libsass_library=‘ ]
gyp info using node-gyp@3.8.0
gyp info using node@11.15.0 | linux | x64
gyp verb command rebuild
gyp verb command clean
gyp verb clean removing „build“ directory
gyp verb command configure
gyp verb check python checking for Python executable „python2“ in the PATH
gyp verb which succeeded python2 /usr/bin/python2
gyp verb check python version /usr/bin/python2 -c "import sys; print "2.7.13 gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 11.15.0
gyp verb command install [‚11.15.0‘]
gyp verb install input version string „11.15.0“
gyp verb install installing version: 11.15.0
gyp verb install --ensure was passed, so won’t reinstall if already installed
gyp WARN EACCES user „undefined“ does not have permission to access the dev dir „/root/.node-gyp/11.15.0“
gyp WARN EACCES attempting to reinstall using temporary dev dir „/app/vendor/shopware/platform/src/Administration/Resources/administration/node_modules/node-sass/.node-gyp“
gyp verb command install [‚–node_gyp_internal_noretry‘, ‚11.15.0‘]
gyp verb install input version string „11.15.0“
gyp verb install installing version: 11.15.0
gyp verb install --ensure was passed, so won’t reinstall if already installed
gyp verb install version not already installed, continuing with install 11.15.0
gyp verb ensuring nodedir is created /app/vendor/shopware/platform/src/Administration/Resources/administration/node_modules/node-sass/.node-gyp/11.15.0
gyp WARN install got an error, rolling back install
gyp verb command remove [‚11.15.0‘]
gyp verb remove using node-gyp dir: /app/vendor/shopware/platform/src/Administration/Resources/administration/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 11.15.0
gyp verb remove removing development files for version: 11.15.0
gyp WARN install got an error, rolling back install
gyp verb command remove [‚11.15.0‘]
gyp verb remove using node-gyp dir: /app/vendor/shopware/platform/src/Administration/Resources/administration/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 11.15.0
gyp verb remove removing development files for version: 11.15.0
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‚/app/vendor/shopware/platform/src/Administration/Resources/administration/node_modules/node-sass/.node-gyp‘
gyp ERR! System Linux 4.4.0-87-generic
gyp ERR! command „/usr/bin/node“ „/app/platform/src/Administration/Resources/administration/node_modules/node-gyp/bin/node-gyp.js“ „rebuild“ „–verbose“ „–libsass_ext=“ „–libsass_cflags=“ „–libsass_ldflags=“ „–libsass_library=“
gyp ERR! cwd /app/platform/src/Administration/Resources/administration/node_modules/node-sass
gyp ERR! node -v v11.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.12.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.12.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2019-05-24T06_31_12_130Z-debug.log

Execution aborted, a subcommand failed!

 

 

Komplett anderes Problem. Du haste NodeJS 12 - das läuft damit nicht. Du müsstest ein Downgrade auf 11 machen, dann tritt der Fehler auch nicht auf.