[REM] ubuntu 18.04 is broken, need to install manually nodejs and npm
This commit is contained in:
parent
5f4c9501c4
commit
3071fb2663
2 changed files with 59 additions and 24 deletions
|
|
@ -16,6 +16,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
- Update to Python==3.7.16
|
- Update to Python==3.7.16
|
||||||
- Update poetry==1.3.1
|
- Update poetry==1.3.1
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- Ubuntu 18.04 is broken, need to install manually nodejs and npm
|
||||||
|
|
||||||
## [1.4.0] - 2022-10-05
|
## [1.4.0] - 2022-10-05
|
||||||
|
|
||||||
**Migration note**
|
**Migration note**
|
||||||
|
|
|
||||||
|
|
@ -89,30 +89,61 @@ if [[ $retVal -ne 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n---- Installing nodeJS NPM and rtlcss for LTR support ----"
|
echo -e "\n---- Installing nodeJS NPM and rtlcss for LTR support ----"
|
||||||
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
|
if [ "18.04" == "${UBUNTU_VERSION}" ]; then
|
||||||
sudo apt-get install -y nodejs
|
sudo apt remove nodeJS npm
|
||||||
retVal=$?
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
|
||||||
if [[ $retVal -ne 0 ]]; then
|
chmod +x ~/.nvm/nvm.sh
|
||||||
echo "apt-get nodejs installation error."
|
. $NVM_DIR/nvm.sh && nvm install 16.15.1
|
||||||
exit 1
|
retVal=$?
|
||||||
fi
|
if [[ $retVal -ne 0 ]]; then
|
||||||
sudo npm install npm@latest -g
|
echo "nvm installation error."
|
||||||
retVal=$?
|
exit 1
|
||||||
if [[ $retVal -ne 0 ]]; then
|
fi
|
||||||
echo "npm install npm lastest installation error."
|
source ~/.bashrc
|
||||||
exit 1
|
npm install npm@latest -g
|
||||||
fi
|
retVal=$?
|
||||||
sudo npm install -g rtlcss
|
if [[ $retVal -ne 0 ]]; then
|
||||||
retVal=$?
|
echo "npm install npm lastest installation error."
|
||||||
if [[ $retVal -ne 0 ]]; then
|
exit 1
|
||||||
echo "npm install rtlcss installation error."
|
fi
|
||||||
exit 1
|
npm install -g rtlcss
|
||||||
fi
|
retVal=$?
|
||||||
sudo npm install -g less
|
if [[ $retVal -ne 0 ]]; then
|
||||||
retVal=$?
|
echo "npm install rtlcss installation error."
|
||||||
if [[ $retVal -ne 0 ]]; then
|
exit 1
|
||||||
echo "npm install less installation error."
|
fi
|
||||||
exit 1
|
npm install -g less
|
||||||
|
retVal=$?
|
||||||
|
if [[ $retVal -ne 0 ]]; then
|
||||||
|
echo "npm install less installation error."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
|
||||||
|
sudo apt-get install -y nodejs
|
||||||
|
retVal=$?
|
||||||
|
if [[ $retVal -ne 0 ]]; then
|
||||||
|
echo "apt-get nodejs installation error."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sudo npm install npm@latest -g
|
||||||
|
retVal=$?
|
||||||
|
if [[ $retVal -ne 0 ]]; then
|
||||||
|
echo "npm install npm lastest installation error."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sudo npm install -g rtlcss
|
||||||
|
retVal=$?
|
||||||
|
if [[ $retVal -ne 0 ]]; then
|
||||||
|
echo "npm install rtlcss installation error."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sudo npm install -g less
|
||||||
|
retVal=$?
|
||||||
|
if [[ $retVal -ne 0 ]]; then
|
||||||
|
echo "npm install less installation error."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n---- Test tool ----"
|
echo -e "\n---- Test tool ----"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue