Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt2 deploy to vercel error: Error: Please install npm before continuing. #814

Open
jackyyangtw opened this issue Jan 15, 2024 · 1 comment

Comments

@jackyyangtw
Copy link

jackyyangtw commented Jan 15, 2024

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:
螢幕擷取畫面 2024-01-15 181836

@ayoub9360
Copy link

Hello ! I have the same error here, did you found any way to fix it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants