This is package.json file
{
“name”: “portfolio”,
“version”: “0.1.0”,
“private”: true,
“scripts”: {
“postinstall”: “prisma generate”,
“dev”: “next dev”,
“build”: “next build”,
“start”: “next start”,
“lint”: “next lint”,
“lint:fix”: “eslint –fix .”
},
“dependencies”: {
“@prisma/client”: “^5.12.1”,
“next”: “14.2.2”,
“next-themes”: “^0.3.0”,
“prisma”: “^5.12.1”,
“react”: “^18”,
“react-dom”: “^18”,
“react-icons”: “^5.1.0”,
“sharp”: “^0.33.3”
},
“devDependencies”: {
“@types/node”: “^20”,
“@types/react”: “^18”,
“@types/react-dom”: “^18”,
“eslint”: “^8.57.0”,
“eslint-config-next”: “^14.2.2”,
“postcss”: “^8”,
“prettier”: “^3.2.5”,
“prettier-plugin-tailwindcss”: “^0.5.14”,
“tailwindcss”: “^3.4.1”,
“typescript”: “^5”
}
}
After running npm run build getting this error
PS R:Projectsnew-portfolio> npm run build
[email protected] build
next build
▲ Next.js 14.2.2
- Environments: .env
Creating an optimized production build …
glob error [Error: EPERM: operation not permitted, scandir ‘C:UsersRaviApplication Data’] {
errno: -4048,
code: ‘EPERM’,
syscall: ‘scandir’,
path: ‘C:UsersRaviApplication Data’
}
Failed to compile.
Error: EPERM: operation not permitted, scandir ‘C:UsersRaviApplication Data’
Build failed because of webpack errors
It should create .next folder in cwd.
Ravishankar Jha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.