Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the consultup domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/portal/wp-includes/functions.php on line 6121
Unable to write to /app/node_modules – University of Highlands and Islands

Unable to write to /app/node_modules

You are here:
< All Topics

If you see a message along the lines of the following:

FAILED
Failed to build the app.

Dumping output from the command:
npm WARN checkPermissions Missing write access to /app/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /app/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/app/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/app/node_modules'] {
npm ERR!   stack: "Error: EACCES: permission denied, access '/app/node_modules'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/app/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tom/.npm/_logs/2020-04-24T15_07_01_348Z-debug.log

Then this means that you need to run as root, try:

sudo ibmcloud dev build

Leave a Reply

Table of Contents