{"id":537,"hash":"e1613e80cb6ff4e3fa2f997375ddf3911cb084181d8860a799764596cd2eb795","pattern":"How to resolve &quot;Error: error:0308010C:digital envelope routines::unsupported&quot; Nodejs 18 error","full_message":"I need help with my NuxtJS application.\n\nI recently had ESLint conflicts in the app after I left it for some time without updating (2 months). So after I started working on it, it presented a challenge trying to resolve the ESLint issue. I then had to migrate the project to a newer version of Node and ESLint.\n\nAfter doing this, I solved the conflict issue and my project could install my dependencies, but now the server won't start. Node is now throwing an error that I don't even know how to fix. I don't know if many others are facing this issue after upgrading their versions of Node.js, but it's throwing an error about an unsupported hash function.\n\nHere is a screenshot of the terminal error that is preventing my server from starting up:\n\nI have resolved all ESLint and syntax errors that came with the migration, so I don't know what else to do.\n\nBelow is a snippet of my nuxt.config.js file:\n\nexport default {\n  // Global page headers: https://go.nuxtjs.dev/config-head\n  head: {\n    title: 'heritage-fd',\n    meta: [\n      { charset: 'utf-8' },\n      { name: 'viewport', content: 'width=device-width, initial-scale=1' },\n      { hid: 'description', name: 'description', content: '' },\n      { name: 'format-detection', content: 'telephone=no' }\n    ],\n    \n    link: [\n      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }\n    ],\n    \n    script: [\n      {\n        src: '~/static/css/bootstrap.min.js',\n      },\n    ],\n  },\n\n  // Global CSS: https://go.nuxtjs.dev/config-css\n  css: [\n    {src: '~/static/css/bootstrap.min.css', lang: 'scss'},\n    {src: '~/assets/scss/custom.scss', lang: 'scss'},\n    {src: \"~layouts/global.css\"},\n    {src: '~/static/css/style.css', lang: 'scss'},\n    {src: '~/assets/css/main.css'}\n    \n  ],\n\n  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins\n   plugins: [\n    \"~/plugins/vee-validate.js\",\n    { src: '~/plugins/persistedState.client.js', ssr: false }\n   ],\n\n  // Auto import components: https://go.nuxtjs.dev/config-components\n  components: true,\n\n  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules\n  buildModules: [\n    // https://go.nuxtjs.dev/eslint\n    '@nuxtjs/eslint-module',\n    'nuxt-gsap-module',\n    '@nuxtjs/fontawesome',\n  ],\n\n  // Modules: https://go.nuxtjs.dev/config-modules\n  modules: [\n    // https://go.nuxtjs.dev/axios\n    '@nuxtjs/axios',\n    // https://go.nuxtjs.dev/pwa\n    '@nuxtjs/pwa',\n    '@nuxtjs/auth-next',\n    'nuxt-vue-select'\n  ],\n\n  // Axios module configuration: https://go.nuxtjs.dev/config-axios\n  axios: {\n    // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308\n    baseURL: 'http://localhost:8000/api/',\n    \n  },\n\n  // PWA module configuration: https://go.nuxtjs.dev/pwa\n   pwa: {\n    manifest: {\n      lang: 'en',\n    },\n  },\n\n  // Build Configuration: https://go.nuxtjs.dev/config-build\n build: {\n    transpile: [\"vee-validate/dist/rules\"],\n    vendor: [\"vue-tables-2\"]\n  },\n}","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"Concerning this error, after doing some much research, i finally discovered that the whole error comes with the nodejs upgrade to version v18.12.1, so i advice everyone facing this same issue who just recently upgraded tio node v18.12.1 to downgrade back to node v16.0.0, if u need help with this , you can use nvm.\n\nsome steps are outlined below, with some link to resources\n\n`\n\nDownload and install nvm\nFollow instructions here\n\nInstall Nodejs v16.0.0\nnvm install 16.0.0\n\nUninstall nodejs v18.12.1\nnvm uninstall 18.12.1 or your own version of node\n\nI truly this helps someone as it did for me, I know the pains that come with framework errors. Please comment if you need further assistance.\nthank you.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/74548318/how-to-resolve-error-error0308010cdigital-envelope-routinesunsupported-no","votes":45,"created_at":"2026-04-19T04:51:19.425480+00:00","updated_at":"2026-04-19T04:51:19.425480+00:00"}