Open jackyyangtw opened 10 months ago
When I was deploying a Nuxt2 project to Vercel, I encountered an error: 'Error: Please install npm before continuing.' How should I resolve this? Thanks!
vercel.json { "builds": [ { "src": "nuxt.config.js", "use": "@nuxtjs/vercel-builder", "config": {} } ] }
package.json { "name": "nuxt-course", "version": "1.0.0", "description": "Nuxt.js course for Udemy", "author": "Maximilian Schwarzmüller", "private": true, "scripts": { "dev": "nuxt", "build": "nuxt build", "start": "nuxt start", "generate": "nuxt generate", "heroku-postbuild": "npm run build" }, "dependencies": { "@nuxtjs/axios": "^5.13.6", "@nuxtjs/vercel-builder": "^0.21.0", "@nuxtjs/vuetify": "^1.12.3", "axios": "^0.26.1", "body-parser": "^1.20.0", "cross-env": "^5.0.1", "express": "^4.18.1", "firebase": "^8.10.1", "js-cookie": "^3.0.1", "node-fetch-native": "^1.2.0", "nuxt": "^2.15.7", "quill": "^1.3.7", "vue-quill-editor": "^3.0.6" }, "devDependencies": { "@nuxt/image": "^0.7.1", "autoprefixer": "^10.4.14", "postcss": "^8.4.24", "tailwindcss": "^3.3.2" } }
vercel backend error:
Hello ! I have the same error here, did you found any way to fix it ?
When I was deploying a Nuxt2 project to Vercel, I encountered an error: 'Error: Please install npm before continuing.' How should I resolve this? Thanks!
vercel.json { "builds": [ { "src": "nuxt.config.js", "use": "@nuxtjs/vercel-builder", "config": {} } ] }
package.json { "name": "nuxt-course", "version": "1.0.0", "description": "Nuxt.js course for Udemy", "author": "Maximilian Schwarzmüller", "private": true, "scripts": { "dev": "nuxt", "build": "nuxt build", "start": "nuxt start", "generate": "nuxt generate", "heroku-postbuild": "npm run build" }, "dependencies": { "@nuxtjs/axios": "^5.13.6", "@nuxtjs/vercel-builder": "^0.21.0", "@nuxtjs/vuetify": "^1.12.3", "axios": "^0.26.1", "body-parser": "^1.20.0", "cross-env": "^5.0.1", "express": "^4.18.1", "firebase": "^8.10.1", "js-cookie": "^3.0.1", "node-fetch-native": "^1.2.0", "nuxt": "^2.15.7", "quill": "^1.3.7", "vue-quill-editor": "^3.0.6" }, "devDependencies": { "@nuxt/image": "^0.7.1", "autoprefixer": "^10.4.14", "postcss": "^8.4.24", "tailwindcss": "^3.3.2" } }
vercel backend error: