Kavani
@Kavani

В чём ошибка npm?

Всем привет! При попытке инициализировать проект через npm i, ловлю предупреждение:
npm install
npm WARN deprecated @types/redux-thunk@2.1.0: This is a stub types definition for Redux Thunk (https://github.com/gaearon/redux-thunk). Redux Thunk provides its own type definitions, so you don't need @types/redux-thunk installed!
npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.

added 1865 packages, and audited 1866 packages in 3m
143 packages are looking for funding
run `npm fund` for details

50 vulnerabilities (2 low, 3 moderate, 33 high, 12 critical)

To address issues that do not require attention, run:
npm audit fix

При попытке запустить проект через npm start, также вылетают разного рода ошибки, и проект не запускается
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (D:\test\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\test\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (D:\test\node_modules\webpack\lib\NormalModule.js:471:10)
at D:\test\node_modules\webpack\lib\NormalModule.js:503:5
at D:\test\node_modules\webpack\lib\NormalModule.js:358:12
at D:\test\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (D:\test\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (D:\test\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
D:\test\node_modules\react-scripts\scripts\start.js:19
throw err;
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (D:\test\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\test\node_modules\webpack\lib\NormalModule.js:417:16)
at D:\test\node_modules\webpack\lib\NormalModule.js:323:13
at D:\test\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\test\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\test\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at D:\test\node_modules\babel-loader\lib\index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.14.0

Подскажите пожалуйста, в чём проблема, и как решить?
  • Вопрос задан
  • 440 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы