• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue NPM install permission denied

Ckappo

New Pleskian
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:

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)!
 
Try to fix vhost permissions before npm installation with

# plesk repair fs domain.com
 
Back
Top