From 095d9b6caa26429ca04e618b795ae7fb7ce406d2 Mon Sep 17 00:00:00 2001 From: A Holt Date: Sun, 15 Jul 2018 07:16:50 -0400 Subject: [PATCH] Update main.yml --- roles/sugarizer/tasks/main.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/roles/sugarizer/tasks/main.yml b/roles/sugarizer/tasks/main.yml index d6374c8d0..d2b9f4cff 100644 --- a/roles/sugarizer/tasks/main.yml +++ b/roles/sugarizer/tasks/main.yml @@ -116,21 +116,20 @@ # NEW WAY BELOW: run "npm install --allow-root" every time, as modern versions # of npm are incremental, with sanity checks (all 3 may work: but npm 6.2.0 -# is better than 5.6.0 better than 3.5.2 +# 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. Error code EACCES, errno -13 (permission denied): +# for hours, on diff OS's. Error code EACCES, errno -13 (permission denied): # "Missing write access to /opt/iiab/sugarizer-server-1.0/node_modules" # -# SOLUTION: -# Implemented '--allow-root' below, as is critical for 1st run of sudo-driven -# 'npm install' (causing it to create /root/.npm cache & lock files owned by -# root:root instead of iiab-admin:iiab-admin) permitting it and IIAB install -# scripts toactually complete :) +# SOLUTION: Implement '--allow-root' below, as is critical for 1st run of +# sudo-driven 'npm install' (causing it to create /root/.npm cache & lock +# 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 # synchronously with the 1st run of 'npm install' (when it's needed!) -# nor is 'chown' functionality nec, now that --allow-root does the job) +# Nor is 'chown' functionality nec, now that --allow-root does the job. #- 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)