Angular-CLI freezes on bulding - linux

I moved to angular-cli and have a problem during production deployment. On local PC with win10 it's all ok, but when I try to build on centos server building freezes on 10%.
OS: CentOS 6.6
ng - v:
#angular/cli: 1.0.0
node: 6.10.1
os: linux x64
#angular/common: 4.0.1
#angular/compiler: 4.0.1
#angular/core: 4.0.1
#angular/forms: 4.0.1
#angular/http: 4.0.1
#angular/platform-browser: 4.0.1
#angular/platform-browser-dynamic: 4.0.1
#angular/router: 4.0.1
#angular/cli: 1.0.0
#angular/compiler-cli: 4.0.1
Then:
cd ~
ng new ngtest
cd ngtest
ng build
And I have this out in during 15 minutes without any changes.
10% building modules 3/3 modules 0 active
Htop shows 0% of processor. And console has no reaction on Ctrl+C. Only kill -9 from other terminal can stop this.
Can someone tell me what is wrong in my confiruration? Thanks!

Try to reinstall #angular/cli
Try to reinstall nodejs and npm
Try to update all soft with yum update
Try to restart the server

Related

Can't update Node to the version I want

I'm on Windows, using Nvm. I did: npm install -g node#16.7. Install was successful, yet nvm list shows versions 14.5 and 16.13.1. Nothing about version 16.7.
Where is the 16.7 version that was successfully installed?

Unable to build ionic app on ubuntu 20.04

I am building my ionic app in ubuntu 20.04, I installed android studio, added the required build tools, and also installed ionic and cordova. But when I attempt to build my app using the command below
ionic cordova build android
I get the following error
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
I check the installed version of gradle using gradle -v and I get the following result
------------------------------------------------------------
Gradle 7.0
------------------------------------------------------------
Build time: 2021-04-09 22:27:31 UTC
Revision: d5661e3f0e07a8caff705f1badf79fb5df8022c4
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_282 (Private Build 25.282-b08)
OS: Linux 5.8.0-50-generic amd64
When I also check for the path using whereis gradle, I get the following result
gradle: /opt/gradle/gradle-7.0/bin/gradle.bat /opt/gradle/gradle-7.0/bin/gradle
When I run ionic info I get the result below
Ionic:
Ionic CLI : 6.13.1 (/usr/local/lib/node_modules/#ionic/cli)
Ionic Framework : #ionic/angular 5.3.2
#angular-devkit/build-angular : 0.1000.8
#angular-devkit/schematics : 10.0.8
#angular/cli : 10.0.8
#ionic/angular-toolkit : 2.3.3
Capacitor:
Capacitor CLI : 2.4.1
#capacitor/core : 2.4.1
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 20 other plugins)
Utility:
cordova-res : 0.15.3
native-run : not installed
System:
Android SDK Tools : 26.1.1 (/home/evans/Android/Sdk)
NodeJS : v10.19.0 (/usr/bin/node)
npm : 7.11.1
OS : Linux 5.8
What could be the problem?

How to uninstall obsolete version of node.js from Ubuntu?

I have two versions of node.js installed on my Ubuntu server(Ubuntu 14.04, node.js v0.12.4 and v6.9.2), the version 0.12.4 was installed through downloaded archive file and the version 6.9.2 was installed through apt-get by following this. However whenever I run npm test command for my project, it can't find version 6.9.2 node.js(which needs node version >= 6.x.x), what should I do to uninstall the obsolete version 0.12.4 node.js?
I believe nvm could be the solution. BTW, node.js LTS version is currently 6.9.1

How to install nodejs 4.1.2 with HomeBrew

I installed NodeJs with the following commands:
brew install node
It downloaded the version 5.5.0 of NodeJs.
I want the version 4.1.2 (for Ionic compatibility).
How to download this specific one?
I can't run brew switch node 4.1.2 since I've never downloaded it before.
May I suggest using nvm instead?
With nvm you can switch between node versions really easy:
nvm install 4.2
And you can install multiple versions of node and switch between them as you wish.
You can search available versions of node to install by running:
brew search node
The closest version would be "node4-lts". To obtain that version, run:
brew install homebrew/versions/node4-lts

Node.js 0.12.0 on CentOS 6 (by rpm)

Im interested on installing the 0.12.0 version of Node.js on a CentOS 6 machine. I have noticed however that through yum, the latest version available is 0.10.33.
Given my environment I can ONLY install packages through RPM, and as I might be inclined to generate my own rpm of Node.js 0.12.0, I would like to know if there is any specific reason why the latest version has yet been made available. Are there by any chance some known problems when running the latest version of Node.js on CentOS 6? Or are there any stable 0.12.0 rpm packages out there I might have missed?
Thanks in advance!
Apparently there is no problem:
https://groups.google.com/forum/#!topic/nodejs/tqiKHCqpeuM
Node v0.12.0 should be stable on all versions os Centos back to 5.7

Resources