eastern-cyan
eastern-cyan14mo ago

"npm install" cannot find package.json

1) Used refine.new to download a bundled project 2) Unzipped the project file 3) From root of project, run "npm install" 4) NPM cannot find "package.json" (it doesn't exist)
7 Replies
kapa.ai
kapa.ai14mo ago
Hi @tristanrhodes. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai14mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, you can try creating a new project using the create refine-app CLI tool as mentioned in the documentation (https://refine.dev/docs/getting-started/quickstart). This will ensure that the necessary files, including package.json, are generated correctly. To create a new project, run the following command:
npm create refine-app@latest my-app
npm create refine-app@latest my-app
After the project is created, navigate to the project folder, install the dependencies, and start the development server:
cd my-app
npm install
npm run dev
cd my-app
npm install
npm run dev
If you still encounter issues, you can refer to the refine documentation (https://refine.dev/docs) for more information and guidance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Overview | refine
What is refine?
kapa.ai
kapa.ai14mo ago
<@359891468825133057> kapa.ai is still learning and improving, please let us how it did by reacting below
eastern-cyan
eastern-cyan14mo ago
If the npm package "refine-app" is required to be installed (even for remix.new projects), it needs to be added to your quick-start documentation: https://refine.dev/docs/getting-started/quickstart/
Quick Start Guide | refine
refine works on any environment that can run React (incl. Vite, Next.js, Remix, and CRA(Legacy) etc.)
eastern-cyan
eastern-cyan14mo ago
I was expecting the package.json file to be included from my download from remix.new
fair-rose
fair-rose14mo ago
Hello @tristanrhodes sorry for the issue, could you let us know which choices you've made? We'll check it ASAP
eastern-cyan
eastern-cyan14mo ago
Thanks for the response. I wasn't sure which ones I used, so I just tried it again and this time it did have the package.json. Since I can't repro, I guess you can close this case.