jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.2k stars 505 forks source link

Cannot install dependencies #1171

Closed nazarEnzo closed 8 months ago

nazarEnzo commented 1 year ago

Current Behavior

Installing npm modules step for react-with-storybook template never ends.

image

Expected behavior

Should install dependency

Your environment

  System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 42.27 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.15.0 - /usr/local/bin/node
    npm: 9.1.3 - /usr/local/bin/npm
  Browsers:
    Brave Browser: 110.1.48.171
    Safari: 16.1
  npmGlobalPackages:
    typescript: 4.6.4
srcnalt commented 1 year ago

I am experiencing the same issue when the storybook is included. So I wanted to see if the issue is storybook itself and tried this.

npx create-react-app test-app
cd test-app
npx storybook init

After dependencies are installed I get this warning, which might be the reason for this.

We've detected you are running npm 9.6.1                                 
which has peer dependency semantics which Storybook is incompatible with.                                                                                    
In order to work with Storybook's package structure, you'll need to run `npm` with the
 `--legacy-peer-deps=true` flag. We can generate an `.npmrc` which will do that automatically.  
More info: https://github.com/storybookjs/storybook/issues/18298

? Do you want to run the 'npm7' migration on your project?
Willem-Jaap commented 1 year ago

+1

node: v18.14.2 
npm: 9.5.0
youngme92 commented 1 year ago

+1

node: v18.16.0
npm: 9.5.1
Symous commented 8 months ago

How to solve this?

srcnalt commented 8 months ago

TSDX is a dead repo now, best is to use one of the forks.

Symous commented 8 months ago

I use nvm and install v18.0.0 and works fine.