Angular project dependency安装,Ubuntu中的npm安装遇到错误

Angular project dependency安装,Ubuntu中的npm安装遇到错误,angular,npm,Angular,Npm,我安装了angular cli版本7.3.8,并使用npm链接将其链接。然后尝试执行npm安装 这将导致一个错误: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/usr/mkl/node_modules/@angular-devkit/core/node_modules/fast-json-stable-stringify/package.json.2754642779 npm ERR! errno -2 npm E

我安装了angular cli版本7.3.8,并使用npm链接将其链接。然后尝试执行
npm安装

这将导致一个错误:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/usr/mkl/node_modules/@angular-devkit/core/node_modules/fast-json-stable-stringify/package.json.2754642779
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/usr/mkl/node_modules/@angular-devkit/core/node_modules/fast-json-stable-stringify/package.json.2754642779'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/usr/.npm/_logs/2020-09-30T14_28_47_932Z-debug.log
我尝试了多种方法来解决这个问题,即删除
node\u模块
并再次尝试npm安装,等等,但都没有成功

npm版本为
6.14.6

角度版本为:

Angular CLI: 7.3.8
Node: 12.18.3
OS: linux x64
Angular: 8.0.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.13.8 (cli-only)
@angular-devkit/build-angular     0.1001.3
@angular-devkit/build-optimizer   0.803.29
@angular-devkit/core              7.3.8 (cli-only)
@angular-devkit/schematics        7.3.8 (cli-only)
@angular/cli                      7.3.8
@angular/http                     7.2.16
@schematics/angular               7.3.8 (cli-only)
@schematics/update                0.13.8 (cli-only)
rxjs                              6.6.3
typescript                        3.4.5
webpack                           4.39.2

我刚刚从
npm
切换到
warn
,并且能够安装所有依赖项,没有任何问题

我会把这个贴在这里,以防有更好的答案出现