mac npm run dev报错 error:0308010C:digital envelope routines::unsupported

并且提示

Unsupported engine {
npm WARN EBADENGINE   package: '@achrinza/[email protected]',
npm WARN EBADENGINE   required: { node: '8 || 10 || 12 || 14 || 16 || 17' },
npm WARN EBADENGINE   current: { node: 'v18.18.0', npm: '9.8.1' }
npm WARN EBADENGINE }

package.json里添加

"scripts": {
  "serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve"
}

你可能感兴趣的:(macos,npm,前端)