startup: use "npm ci" instead of "npm install" in startup scripts
Advantages: - reproducible install: every user will have the same, exact install, instead of a slightly different one - speed: installation of dependencies is measurably faster - explicit: if a user setup is broken, from now on he'll have a clear error message Fixes #3778
This commit is contained in:
parent
4365598658
commit
2087a2e564
2 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ echo "Ensure that all dependencies are up to date... If this is the first time
|
|||
cd node_modules
|
||||
[ -e ep_etherpad-lite ] || ln -s ../src ep_etherpad-lite
|
||||
cd ep_etherpad-lite
|
||||
npm install --save --loglevel warn
|
||||
npm ci
|
||||
) || {
|
||||
rm -rf src/node_modules
|
||||
exit 1
|
||||
|
|
|
@ -14,7 +14,7 @@ cd /D node_modules
|
|||
mklink /D "ep_etherpad-lite" "..\src"
|
||||
|
||||
cd /D "ep_etherpad-lite"
|
||||
cmd /C npm install --loglevel warn || exit /B 1
|
||||
cmd /C npm ci || exit /B 1
|
||||
|
||||
cd /D "%~dp0\.."
|
||||
|
||||
|
|
Loading…
Reference in a new issue