I am currently trying to setup a dev environment to try and work on some plugins.
Due to beeing on a corporate managed computer where I can’t do virtualization currently, I am unable to run forklift and so resorting to running from source on a RHEL8 virtual server. I am following the contribution guide, but have encountered some issues along the way.
npm i, I saw a lot of EOL/deprecation warnings. I’ll assume you know about these and I can ignore them for now, but still wanted to mention it.
npm installfailed, from what I can tell it is failing to install node-sass. I get this error:
gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/lhm/foreman/node_modules/@theforeman/stories/node_modules/node-sass/.node-gyp' gyp ERR! System Linux 4.18.0-372.13.1.el8_6.x86_64 gyp ERR! command "/usr/bin/node" "/opt/lhm/foreman/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /opt/lhm/foreman/node_modules/@theforeman/stories/node_modules/node-sass gyp ERR! node -v v14.18.2 gyp ERR! node-gyp -v v7.1.2 gyp ERR! not ok
I am not sure if this is an error on my end or with the upstream library.
- Probably due to the above error in npm install, foreman fails to start.
Can someone confirm if this is in fact the current state of running from source or if it’s a problem on my end? Any pointers on getting this to run?