I am just trying to install ts-jest
on new project like:
$ mkdir test && cd test
$ npm init -y
$ npm install ts-jest
All other packages can be installed with no error or hanging but only ts-jest
never be installed and keep stuck at sill idealTree buildDeps
If I try to install from github directly it allows me to install package
$ npm install git https://github.com/kulshekhar/ts-jest.git
Here's what I have tried:
- Remove package-lock and node_modules
- Reinstall node
- Change node version (16, 17, 18, etc...)
- Restart Mac (M1)
- Set registry http://registry.npmjs.org/
- ssh-add
- Install another version of tsjest (v29.0.5, v26.5.3, v25 ...)
- Test on another mac (Intel)
- Test on another Wifi
- Test on LAN
But none of them did work for me.
Current Environment:
- Mac M1 Ventura 13.0
- Node v16.13.2
- Npm 9.3.0
CodePudding user response:
One thing I can recommend is to check your SSH settings with GitHub.
I searched around and the people who have similar 'get stuck' issues have resolved it by setting up the SSH key right.
https://github.com/npm/npm/issues/17228
To set up your SSH key
https://dev.to/brandonwie/how-do-i-connect-2-different-github-account-1b60
The post is about dual set up, but you'll get the idea.
And make sure you add the SSH key to your GitHub