this is my package.json file it's a code from a course to test my code enter image description herefunctionality. The npm run build is working by the way & I'm using vite to run the npm.
{ "name": "adopt-me", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev":"vite", "build":"vite build", "preview":"vite preview", "format": "prettier --write "src//*.{js,jsx}"", "lint": "eslint "src//*.{js,jsx}" --quiet", "test": "echo"Error: no test specified"&& exit1" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@vitejs/plugin-react": "^2.1.0", "eslint": "^8.24.0", "eslint-config-prettier": "^8.5.0", "prettier": "^2.7.1", "vite": "^3.1.4" }, "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" } }
to run my react on browser in, I expecting to get a localhost number to do that
CodePudding user response:
According to your screenshot:
You need to run npm run dev
not npm run div