• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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