"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
Hi @tristanrhodes. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
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:
After the project is created, navigate to the project folder, install the dependencies, and start the development server:
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?
<@359891468825133057> kapa.ai is still learning and improving, please let us how it did by reacting below
metropolitan-bronze•16mo 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.)
metropolitan-bronze•16mo ago
I was expecting the package.json file to be included from my download from remix.new
stormy-gold•16mo ago
Hello @tristanrhodes sorry for the issue, could you let us know which choices you've made? We'll check it ASAP
metropolitan-bronze•16mo 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.