equal-jade
equal-jade17mo ago

trying to run the command npm run dev results in the following error

PS C:\Users\assas\Desktop\FL proj 1> npm run dev npm ERR! Missing script: "dev" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in: C:\Users\assas\AppData\Local\npm-cache_logs\2023-06-20T13_09_35_689Z-debug-0.log
9 Replies
kapa.ai
kapa.ai17mo ago
Hi @assassinxd.. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you're trying to run the development server for your refine project, but the "dev" script is missing in your package.json. To start the development server, you can use one of the following commands depending on your package manager: For npm:
npm run refine dev
npm run refine dev
For pnpm:
pnpm run refine dev
pnpm run refine dev
For yarn:
yarn run refine dev
yarn run refine dev
Make sure you have the refine CLI installed and configured correctly in your project. If you still encounter issues, please refer to the refine documentation (https://refine.dev/docs/tutorial/getting-started/headless/create-project) for more information on setting up and running your project. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai17mo ago
<@301374432323174401> kapa.ai is still learning and improving, please let us how it did by reacting below
fascinating-indigo
fascinating-indigo17mo ago
Hey @assassinxd., how did you create your project? Using refine.new or create-refine-app? Can you share your package.json?
equal-jade
equal-jade17mo ago
yes i used create-refine-app command { "name": "client", "version": "0.1.0", "private": true, "dependencies": { "@refinedev/cli": "^2.5.1", "@refinedev/core": "^4.5.8", "@refinedev/inferencer": "^4.0.0", "@refinedev/kbar": "^1.1.0", "react": "^18.0.0", "react-dom": "^18.0.0", "react-scripts": "^5.0.0", "react-router-dom": "^6.8.1", "@refinedev/simple-rest": "^4.0.0", "@refinedev/mui": "^5.0.0", "@refinedev/react-hook-form": "^4.1.2", "@mui/icons-material": "^5.8.3", "@emotion/react": "^11.8.2", "@emotion/styled": "^11.8.1", "@mui/lab": "^5.0.0-alpha.85", "@mui/material": "^5.8.6", "@mui/x-data-grid": "^6.6.0", "react-hook-form": "^7.30.0", "@refinedev/react-router-v6": "^4.1.0", "axios": "^0.26.1" }, "devDependencies": { "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@types/node": "^12.20.11", "typescript": "^4.7.4", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.1.1", "@testing-library/user-event": "^14.1.1", "@types/jest": "^29.2.4", "web-vitals": "^1.1.1" }, "scripts": { "dev": "refine start", "build": "refine build", "test": "react-scripts test", "eject": "react-scripts eject", "refine": "refine" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } } it does contain the dev script also all other scripts are showing the same error message i havent made any changes in the json either
fascinating-indigo
fascinating-indigo17mo ago
Do you have package.json located in root of FL proj 1 directory?
equal-jade
equal-jade17mo ago
i believe so i havent changed any addresses C:\Users\assas\Desktop\FL proj 1\client this was the default address i havent changed it
fascinating-indigo
fascinating-indigo17mo ago
According to your first message, you've tried to run the npm run dev command while in the FL proj 1 directory. Can you try navigating to client directory and re run?
equal-jade
equal-jade17mo ago
sure ill try it worked! thank you very much ill keep this in mind next time
fascinating-indigo
fascinating-indigo17mo ago
happy to help!