infinitered / ignite

Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more!
MIT License
17.42k stars 1.38k forks source link

Error: Cannot find module 'fs-jetpack' #2475

Closed AliBahaari closed 1 year ago

AliBahaari commented 1 year ago

Describe the bug

Hello there! I got familiar with the CLI and tried to create a project with the command below:

npx ignite-cli@latest new PizzaApp

After installing some dependencies, it throws me the error below: Error: Cannot find module 'fs-jetpack'

I tried to install fs-jetpack manually and globally but it didn't work.

I would appreciate any information!

Ignite version

8.8.3

Additional info

System
  platform           win32
  arch               x64
  cpu                8 cores      Intel(R) Core(TM) i7-4702MQ CPU @ 2.20GHz
  directory          -            E:\

JavaScript (and globally-installed packages)
  node                           16.20.0                                   D:\NodeJS\node.EXE
  npm                            8.19.4                                    D:\NodeJS\npm.CMD
    @nestjs/cli                  10.0.3
    @vue/cli                     5.0.8
    eslint                       8.39.0
    express-generator            4.16.1
    fs-jetpack                   5.1.0
    nx                           14.3.5
    pnpm                         6.31.0
    react-360-cli                1.1.0
    react-native-cli             2.0.1
    react-native                 -
    typescript-express-starter   10.0.0
    typescript                   4.9.4
    yarn                         1.22.19
  yarn                           1.22.19                                   C:\Users\user\AppData\Roaming\npm\yarn.CMD
    commitizen                   4.2.4
    create-next-app              13.4.7
    create-react-app             5.0.1
    react-360-cli                1.1.0
    yarn                         1.22.19
  pnpm                           6.31.0                                    C:\Users\user\AppData\Roaming\npm\pnpm.CMD
                                 <no pnpm global package info available>
  expo                           -                                         not installed

Ignite
  ignite-cli         8.8.3        C:\Users\user\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\.bin\ignite.CMD
  ignite src         build        C:\Users\user\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\ignite-cli\build

Android
  java               18.0.2       C:\Program Files\Common Files\Oracle\Java\javapath\java.EXE
  android home       -            C:\Users\user\AppData\Local\Android\Sdk

Tools
  git                git version 2.38.0.windows.1   C:\Program Files\Git\cmd\git.EXE
frankcalise commented 1 year ago

Hi @AliBahaari, sorry to hear about your troubles!

You shouldn't have to globally install that package, so you could remove it. Can you provide the debug output to your new command? Add --debug onto the command you are using and maybe we'll uncover some more info.

Thanks!

AliBahaari commented 1 year ago

It's unbelievable! This time I run the command above along with --debug and worked. Thanks! @frankcalise