ubuntu /x86_64-linux-gnu/libc.so.6中指定的节点:找不到'GLIBC_2.28'版本(节点需要)

hujrc8aj  于 2022-11-22  发布在  Linux
关注(0)|答案(1)|浏览(414)

当我键入命令“npm run production“或“npm run watch"时遇到问题,出现以下消息:/x86_64-linux-gnu/libc.so.6中的一个或多个节点:找不到'GLIBC_2.28'版本(节点需要)。**
1.Ubuntu版本:Linux操作系统(GNU/Linux操作系统)
1.节点版本:版本16.17.0
1.nvm版本:0.39.1

我包.json

{
    "name":"Wanted.com",
    "version": "0.0.1",
    "homepage":"https://w-ted.com/index",
    "private": true,
    "dependencies":{
        "npm-watch" : "^0.6.0"
    },
    "scripts": {
        "dev": "npm run development",
        "development": "mix",
        "watch": "mix watch",
        "watch-poll": "mix watch -- --watch-options-poll=1000",
        "hot": "mix watch --hot",
        "prod": "npm run production",
        "production": "mix --production"
    },
    "devDependencies": {
        "@tailwindcss/forms": "^0.2.1",
        "alpinejs": "^3.4.2",
        "autoprefixer": "^10.1.0",
        "axios": "^0.21",
        "laravel-echo": "^1.11.3",
        "laravel-mix": "^6.0.6",
        "lodash": "^4.17.19",
        "node-sass": "^7.0.1",
        "postcss": "^8.2.1",
        "postcss-import": "^12.0.1",
        "pusher-js": "^7.0.3",
        "sass-loader": "^12.4.0",
        "tailwindcss": "^2.0.2",
        "vue-loader": "^15.9.7",
        "vue-template-compiler": "^2.6.14"
    },
    "engines": {
    "node": "16.x"
    },
    "dependencies": {
        "vue": "^2.6.14"
    }
}

Package.json
此致!

yzuktlbb

yzuktlbb1#

我是这样说的:https://help.heroku.com/R7DTSTD0/fix-node-js-error-version-glibc_2-28-not-found
所以我降级了节点版本。雅普这不是我想要的解决方案,但至少它解决了我的问题,

相关问题