react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Create React Admin interactive mode doesn't work

Open chawax opened this issue 8 months ago • 5 comments

I follow the video tutorial to initialize a React Admin project, but when i run the "npm init" command :

npm init react-admin react-admin-demo

it should ask data provider, auth provider, etc... But it does not. It creates an empty project then installs dependencies, but that's all.

I tried to explicitely set interactive mode but it does not work neither

npm init react-admin react-admin-demo --interactive

I use Node 22.14.0, but same problem with Node 20.

I noticed on the Youtube video comment that other people met the same problem.

chawax avatar Apr 13 '25 18:04 chawax

Well, i could make it work this way :

npm init react-admin react-admin-demo -- --interactive

So it looks like interactive mode is not more the default one.

chawax avatar Apr 13 '25 19:04 chawax

Yes, the default CLI mode has been changed in 5.6.0. The video should be updated, though, so I'm marking this as a documentation issue.

fzaninotto avatar Apr 14 '25 06:04 fzaninotto

Ok, thanks !

othierry-asi avatar Apr 14 '25 08:04 othierry-asi

fzaninotto wwould you like me to edit the youtube video to fix this documentation issue?

saloua-ch avatar Apr 15 '25 08:04 saloua-ch

How could you edit the video? We need to rerecord it I think.

fzaninotto avatar Apr 15 '25 08:04 fzaninotto