diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index 7fe312ca3..a2d7fc8ac 100644 --- a/roles/sugarizer/tasks/main.yml +++ b/roles/sugarizer/tasks/main.yml @@ -119,7 +119,8 @@ # is better than 5.6.0. which is better than Ubuntu 18.04's 3.5.2). # 2018-07-15: TK Kang & Holt confirmed sudo-driven "npm install" maxes out CPU -# for hours, on diff OS's. Error code EACCES, errno -13 (permission denied): +# for hours, on diff OS's using npm 5.6.0 and 6.2.0. Error code EACCES, +# errno -13 (permission denied): # "Missing write access to /opt/iiab/sugarizer-server-1.0/node_modules" # # SOLUTION: Implement '--allow-root' below, as is critical for 1st run of @@ -127,9 +128,14 @@ # files owned by root:root instead of iiab-admin:iiab-admin) permitting it # and IIAB install scripts to actually complete :) # -# CLARIF: something like 'chown -R root:root /root/.npm' cannot happen +# CLARIF 1: Something like 'chown -R root:root /root/.npm' cannot happen # synchronously with the 1st run of 'npm install' (when it's needed!) # Nor is 'chown' functionality nec, now that --allow-root does the job. +# +# CLARIF 2: Ubuntu 18.04 is currently unaffected due to its ancient +# npm 3.5.2, which instead uses /home/iiab-admin/.npm (these remain owned +# by iiab-admin:iiab-admin, even with the new "npm install --allow-root", +# but thankfully still get the job done, for now!) #- name: Create the express framework for Node.js (OS's other than Fedora 18) - name: Run 'npm install --allow-root' to create /opt/iiab/{{ sugarizer_server_version }}/node_modules (CAN TAKE SEVERAL MINUTES)