mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
Update main.yml
This commit is contained in:
parent
162a367885
commit
095d9b6caa
1 changed files with 7 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue