Hi,
I installed Node JS (Extensions -> Node.JS) and activated Node on one of my Domains. After configuration i start "NPM Install" but I get this Error:
How can I change the permission? I'm logged in as Admin (Root)!
I installed Node JS (Extensions -> Node.JS) and activated Node on one of my Domains. After configuration i start "NPM Install" but I get this Error:
Code:
Fehlgeschlagen
Anwendungsabhängigkeiten werden installiert
Execution filemng has failed with exit code 1, stdout: [email protected] /var/www/vhosts/XXX/api.XXX
`-- (empty)
, stderr: npm WARN deprecated [email protected]: Use uuid module instead
npm WARN checkPermissions Missing write access to /var/www/vhosts/XXX/api.XXX/node_modules/mysql/node_modules
npm WARN checkPermissions Missing write access to /var/www/vhosts/XXX/api.XXX/node_modules/static-module/node_modules
npm WARN checkPermissions Missing write access to /var/www/vhosts/XXX/api.XXX/node_modules/hummus/node_modules/tar-pack
npm WARN checkPermissions Missing write access to /var/www/vhosts/XXX/api.XXX/node_modules/requestretry
npm WARN enoent ENOENT: no such file or directory, open '/var/www/vhosts/XXX/api.XXX/node_modules/ast-transform/package.json'
npm WARN Invalid version: "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz"
npm WARN enoent ENOENT: no such file or directory, open '/var/www/vhosts/XXX/api.XXX/node_modules/escodegen/package.json'
npm WARN Invalid version: "https://registry.npmjs.org/extract-zip/-/extract-zip-1.5.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/http-errors/-/http-errors-1.6.1.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/jsprim/-/jsprim-1.4.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/request/-/request-2.79.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/resolve/-/resolve-1.3.3.tgz"
npm WARN enoent ENOENT: no such file or directory, open '/var/www/vhosts/XXX/api.XXX/node_modules/router/package.json'
npm WARN Invalid version: "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz"
npm WARN enoent ENOENT: no such file or directory, open '/var/www/vhosts/XXX/api.XXX/node_modules/through2/package.json'
npm WARN Invalid version: "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/qs/-/qs-6.3.2.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz"
npm WARN enoent ENOENT: no such file or directory, open '/var/www/vhosts/XXX/api.XXX/node_modules/hummus/node_modules/debug/package.json'
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/opt/plesk/node/7/bin/node" "/opt/plesk/node/7/bin/npm" "install"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! path /var/www/vhosts/XXX/api.XXX/node_modules/mysql/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/var/www/vhosts/XXX/api.XXX/node_modules/mysql/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/var/www/vhosts/XXX/api.XXX/node_modules/mysql/node_modules'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/var/www/vhosts/XXX/api.XXX/node_modules/mysql/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/vhosts/XXX/api.XXX/npm-debug.log
How can I change the permission? I'm logged in as Admin (Root)!