【发布时间】:2020-07-21 20:09:05
【问题描述】:
我需要使用 'ng serve' 来运行某些东西,但是当我尝试执行 sudo npm install 时,我得到了这个错误:
npm WARN bootstrap@4.5.0 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.5.0 requires a peer of popper.js@^1.16.0 but none is installed. You must install peer dependencies yourself.
audited 1499 packages in 15.548s
52 packages are looking for funding
run `npm fund` for details
found 319 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
有人知道该怎么做才能使 ng serve 工作吗?当我现在尝试 ng serve 时,它说找不到命令。
【问题讨论】:
-
那些不是错误。你的问题是
ng没有安装。 -
错误信息是不言自明的。 Bootstrap 需要 jquery 和 popper.js 才能工作,而你缺少这两个。首先尝试 npm install jquery 和 popperjs
标签: node.js npm visual-studio-code