不知道为什么我突然收到这个奇怪的错误
`Uncaught TypeError: Unable to determine current node version
at versionIncluded (index.js:51:9)
at isCore (index.js:68:25)
at 3BMrs.3e9936faf252d157 (core.js:9:21)
at newRequire (index.js:71:24)
at localRequire (index.js:84:35)
at iHzDq.fab65eb61bd949bd (index.js:2:14)
at newRequire (index.js:71:24)
at localRequire (index.js:84:35)
at 4YmQ4.92c7c5fc0e59f8 (run-filter.js:4:15)
at newRequire (index.js:71:24)`
我的package.json文件代码是-
{
"name": "ecommerce-project",
"version": "1.0.0",
"engines": {
"node": "18.17.0"
},
"browserslist": "> 0.5%, last 2 versions, not dead",
"description": "This is an ecommerce website",
"source": "public/js/index.js",
"scripts": {
"start": "nodemon server.js",
"watch:js": "parcel watch --dist-dir ./public/js/bundle",
"build:js": "parcel build --dist-dir ./public/js/bundle"
},
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^1.5.1",
"bcrypt": "^5.1.1",
"bcryptjs": "^2.4.3",
"cookie-parser": "^1.4.6",
"core-js": "^3.33.0",
"crypto": "^1.0.1",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-mongo-sanitize": "^2.2.0",
"express-rate-limit": "^7.0.2",
"helmet": "^7.0.0",
"hpp": "^0.2.3",
"html-to-text": "^9.0.5",
"jsonwebtoken": "^9.0.2",
"mongodb": "^6.0.0",
"mongoose": "^7.5.0",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1",
"nodemailer": "^6.9.5",
"nodemon": "^3.0.1",
"parcel": "^2.9.3",
"pug": "^3.0.2",
"slugify": "^1.6.6",
"validator": "^13.11.0"
},
"devDependencies": {
"assert": "^2.1.0",
"buffer": "^6.0.3",
"parcel-bundler": "^1.12.5",
"path-browserify": "^1.0.1",
"punycode": "^1.4.1",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"string_decoder": "^1.3.0",
"util": "^0.12.5"
}
}
我不知道这个错误从何而来,请帮助修复,我们将不胜感激!
我正在部署一个网站,但控制台显示了这个奇怪的错误,我在网上查找了所有可能的修复方法,但没有得到答案