#angular in Ubuntu don’t get packages
19 messages · Page 1 of 1 (latest)
Are you logged into NPM?
npm require login? i never logged in npm but on my other pc angular run good
and npm get stuck for every operations
is stuck here since for 10 minutes
Well, there’s a few things you could try
First, I’d definitely try logging in, as that couldn’t hurt
If you use the command line to do it, npm login, then it’ll automatically store your login credentials in an .npmrc file that will be created in your home directory, and so then after that’s there if it’s not already, you should at least be able to feel confident moving forward you’re logged in
The next to try, is just to wait… could be any number of miscellaneous hang ups… a chain only requires one weak link 
Maybe you home internet is slow for some service provider reason? Maybe your Wi-Fi signal is bad? Maybe there’s an issue going on right now either at npmjs.org or github.com? So just stepping away to take a break, and coming back again later to try again may be all you need
Finally, if for some reason you STILL just can’t seem to get npm to work for you on this some how, you could always go to the packages source code on GitHub. From there you’d just clone the repo to your machine somewhere, and then instead of doing
npm install -g @angular/cli
You’d do
npm install -g ../my/path/to/cloned/github/repo
and you can install it that way
Only warning about that, is it will register that specific file path that’s proprietary to you in your package.json next to the package, so you’ll want to edit that file to clean it up afterwards, once this is installed, as you should still definitely attempt to resolve this problem at a later point if you’re not somehow past it anytime soon, BUT… downloading the source from GitHub manually, and then installing by path reference to the module, will at least get you back to coding for now 
after 20 minutes angular is installed
but npm is taking tooooo time
now is stuck here
my internet connection is good
Seems like maybe a performance issue with the machine then, because now that you actually have the code to run locally on your machine, ng new shouldn’t really take very long for much of anything, even starting new projects
Do you have some sort of activity monitor or something you can look at? To see if (and what) something is sucking all the juice off your CPU from or filling your memory up with?
You might have some sibling programs/services that’d be helpful to close down
my laptop is very good, i have an i7 10th, 8gb ram, and an nvme
in the process monitoring seems the pc not do nothing
It looks like Chrome is using considerable memory… you got like 500 tabs open? 😆