Hi,
I´ve launched a Ubuntu VM on Azure and installed Git, Nodejs, Grunt and MongoDB and followed the rest of the installation instructions. But when I run the node install command I get this error.
Cloned https://github.com/adaptlearning/adapt_framework.git successfully.
/temp/5f6a270ce2a31d702d2f405e/adapt_framework switched to revision tags/v5.7.0
error [22 Sep 20 16:32:35 +00:00] Error downloading the framework ⚠ EACCES: permission denied, open '/home/adapt_authoring/temp/5f6a270ce2a31d702d2f405e/adapt_framework/node_modules/jpegtran-bin/vendor/jpegtran'
⚠ jpegtran pre-build test failed
ℹ compiling from source
✖ Error: EACCES: permission denied, mkdir '/home/adapt_authoring/temp/5f6a270ce2a31d702d2f405e/adapt_framework/node_modules/jpegtran-bin/49b9a470-bb20-4fae-8ea1-05fa38bd5472'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jpegtran-bin@5.0.2 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jpegtran-bin@5.0.2 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! /home/admin-user/.npm/_logs/2020-09-22T16_32_35_345Z-debug.log
ERROR: ⚠ EACCES: permission denied, open '/home/adapt_authoring/temp/5f6a270ce2a31d702d2f405e/adapt_framework/node_modules/jpegtran-bin/vendor/jpegtran'
⚠ jpegtran pre-build test failed
ℹ compiling from source
✖ Error: EACCES: permission denied, mkdir '/home/adapt_authoring/temp/5f6a270ce2a31d702d2f405e/adapt_framework/node_modules/jpegtran-bin/49b9a470-bb20-4fae-8ea1-05fa38bd5472'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jpegtran-bin@5.0.2 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jpegtran-bin@5.0.2 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! /home/admin-user/.npm/_logs/2020-09-22T16_32_35_345Z-debug.log
I´ve tried most thing I could find on Google, like clearing the npm cache etc but nothing works. I´m not able to find much on jpegtran and I don´t understand why it gets permission denied on mkdir. I ran the command with sudo.
Would really appreciate any help!
Thanks