你可以查看项目根目录下的 package.json 文件中的 engines 属性。该属性定义了项目所需的 Node.js 版本范围。
参考资料:
怎么查看当前vue项目,要求的node.js版本_vue项目node版本查看
node -v 查看你用的node版本,或者
{ "name": "my-vue-project", "version": "1.0.0", "description": "My Vue project", "main": "index.js", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build" }, "dependencies": { "vue": "^2.6.11" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-service": "~4.5.0", "babel-eslint": "^10.1.0", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", "vue-template-compiler": "^2.6.11" }, "engines": { "node": ">=12.0.0" } }