Origin and Problem
I'm building my portfolio and trying to install swup for transitions.
The thing is that i can't use npm install <package> 'cause npm freeze.
npm install swup
Infinite output:
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠋ idealTree:portfolio: sill idealTree buildDeps
Using --verbose to see details, get the following output:
npm install swup --verbose
npm verb cli /usr/local/bin/node /usr/local/bin/npm
npm info using npm@8.19.2
npm info using node@v18.12.1
npm timing npm:load:whichnode Completed in 1ms
npm timing config:load:defaults Completed in 2ms
npm timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
npm timing config:load:builtin Completed in 2ms
npm timing config:load:cli Completed in 3ms
npm timing config:load:env Completed in 0ms
npm timing config:load:file:/home/username/programming/portfolio/.npmrc Completed in 0ms
npm timing config:load:project Completed in 14ms
npm timing config:load:file:/home/username/.npmrc Completed in 1ms
npm timing config:load:user Completed in 2ms
npm timing config:load:file:/usr/local/etc/npmrc Completed in 1ms
npm timing config:load:global Completed in 1ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 28ms
npm timing npm:load:configload Completed in 28ms
npm timing npm:load:mkdirpcache Completed in 2ms
npm timing npm:load:mkdirplogs Completed in 0ms
npm verb title npm install swup
npm verb argv "install" "swup" "--loglevel" "verbose"
npm timing npm:load:setTitle Completed in 2ms
npm timing config:load:flatten Completed in 6ms
npm timing npm:load:display Completed in 16ms
npm verb logfile logs-max:10 dir:/home/username/.npm/_logs
npm verb logfile /home/username/.npm/_logs/2022-11-26T15_04_49_689Z-debug-0.log
npm timing npm:load:logFile Completed in 11ms
npm timing npm:load:timers Completed in 1ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load Completed in 62ms
npm timing arborist:ctor Completed in 3ms
npm timing idealTree:init Completed in 20ms
npm timing idealTree:userRequests Completed in 6ms
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠋ idealTree:portfolio: sill idealTree buildDeps
Just get in an infinite loop building idealTree. This still happens with global installations.
What I Tried
I found this issue in npm project old repositorie, just a "public archive". Even if isn't the same problem, was one of the few clues founded online.
Tried the things described there:
- Remove package(-lock).json.
- Add keys to ssh-agent.
- Move the project to a new folder and rebuild.
None of them work, so tried the answers on this stackoverflow post:
- Execute: npm set strict-ssl false.
- Tried updating npm (this didn't execute either, just freeze).
- Tried updating my OS (alredy was in the latest version).
- Tried configuring a new cafile in npm.
Still didn't work, so tried this post:
- Execute npm config set registry https://registry.npmjs.org/
Nothing i tried works.
I don't know what else to do.
What I need
To clarify, need to make my npm installation to work.
Additional Information
- npm: vr. 8.19.2
- Node: vr.18.12.1
- OS: Ubuntu 22.04 (jammy)
- A few days ago, ask about a problem when trying to use yarn, here is my question, don't know if can be related.
Edit
- 27/11/22: Reinstalled from 0 node and npm in my machine, lost my installed libraries and still freeze trying to use npm install.