我用git clone克隆了一个仓库,它被下载到我的电脑上,我用了npm install命令,它安装了一些东西,但是有消息
npm WARN deprecated" and at the end it says "55 vulnerabilities (3 low, 12 moderate, 36 high, 4 critical)
To address issues that do not require attention, run: npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
我已经用过了
npm install --force
但当使用“离子服务”时,它不连接,并显示如下:
[ng] (node:13200) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
[ng] (Use `node --trace-deprecation ...` to show where the warning was created)
[ng] node:internal/crypto/hash:71
[ng] this[kHandle] = new _Hash(algorithm, xofLen);
[ng] ^
[ng] Error: error:0308010C:digital envelope routines::unsupported
[ng] at new Hash (node:internal/crypto/hash:71:19)
[ng] at Object.createHash (node:crypto:133:10)
[ng] at module.exports (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\util\createHash.js:135:53)
[ng] at NormalModule._initBuildHash (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\NormalModule.js:417:16)
[ng] at C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\NormalModule.js:452:10
[ng] at C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\NormalModule.js:323:13
[ng] at C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\loader-runner\lib\LoaderRunner.js:367:11
[ng] at C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\loader-runner\lib\LoaderRunner.js:203:19
[ng] at VirtualFileSystemDecorator.readFile (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\@ngtools\webpack\src\virtual_file_system_decorator.js:47:13)
[ng] at processResource (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\loader-runner\lib\LoaderRunner.js:202:11)
[ng] at iteratePitchingLoaders (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
[ng] at runLoaders (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\loader-runner\lib\LoaderRunner.js:365:2)
[ng] at NormalModule.doBuild (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\NormalModule.js:295:3)
[ng] at NormalModule.build (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\NormalModule.js:446:15)
[ng] at Compilation.buildModule (C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\Compilation.js:739:10)
[ng] at C:\Users\ritle\Desktop\App Sensorial\Nova pasta\AnaliseSensorial\node_modules\webpack\lib\Compilation.js:981:14 {
[ng] opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
[ng] library: 'digital envelope routines',
[ng] reason: 'unsupported',
[ng] code: 'ERR_OSSL_EVP_UNSUPPORTED'
[ng] }
[ng] Node.js v18.12.1
[ERROR] ng has unexpectedly closed (exit code 1).
The Ionic CLI will exit. Please check any output above for error details.
我怎么解决这个问题?
我尝试了npm安装/ npm安装--强制和npm审计修复--强制,但不起作用
1条答案
按热度按时间epfja78i1#
尝试运行
npm cache clean
以清除下载包该高速缓存,然后再次运行npm install
。如果这不起作用,很可能是您安装的节点版本有问题,请尝试不同的版本,看看它是否起作用(最好是检查您试图克隆的git repo的节点版本兼容性)