Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular6 引导程序无法通过angular 6项目的命令提示符进行安装_Angular6 - Fatal编程技术网

Angular6 引导程序无法通过angular 6项目的命令提示符进行安装

Angular6 引导程序无法通过angular 6项目的命令提示符进行安装,angular6,Angular6,在发出安装引导程序的命令之后,我得到了这个消息。我也检查了节点模块文件夹,但它没有安装。任何人都可以手动帮助我吗?您可以将其添加到package.json文件中 npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@4.3.1 requires a peer of

在发出安装引导程序的命令之后,我得到了这个消息。我也检查了节点模块文件夹,但它没有安装。任何人都可以手动帮助我吗?您可以将其添加到package.json文件中

npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ bootstrap@4.3.1
updated 1 package and audited 40445 packages in 18.647s
found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
},


您可以在package.json文件中找到依赖项,然后添加此内容。

您可以手动添加到package.json文件中

npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ bootstrap@4.3.1
updated 1 package and audited 40445 packages in 18.647s
found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
},


您可以在package.json文件中找到依赖项,然后添加此内容。

要解决此问题,只需使用npm手动安装这些软件包:

"dependencies": {

"bootstrap": "^4.3.1",
现在您已经拥有了所有需要的包


要正确运行boostrap,请执行以下步骤:

  • 通过添加jquery popper和引导脚本打开angular.json文件并编辑脚本部分,如下所示:
  • “脚本”:[“node_modules/jquery/dist/jquery.min.js”,
    “node_modules/popper.js/dist/umd/popper.min.js”,
    “node_modules/bootstrap/dist/js/bootstrap.bundle.js”]

  • 打开src/styles.css文件并添加boostrap css的导入:
  • @导入“~bootstrap/dist/css/bootstrap.min.css”


    要解决此问题,只需使用npm手动安装这些软件包:

    "dependencies": {
    
    "bootstrap": "^4.3.1",
    
    现在您已经拥有了所有需要的包


    要正确运行boostrap,请执行以下步骤:

  • 通过添加jquery popper和引导脚本打开angular.json文件并编辑脚本部分,如下所示:
  • “脚本”:[“node_modules/jquery/dist/jquery.min.js”,
    “node_modules/popper.js/dist/umd/popper.min.js”,
    “node_modules/bootstrap/dist/js/bootstrap.bundle.js”]

  • 打开src/styles.css文件并添加boostrap css的导入:
  • @导入“~bootstrap/dist/css/bootstrap.min.css”


    您是否安装了
    WARN
    消息中列出的依赖项?(即jquery、popper等)您是否安装了
    警告
    消息中列出的依赖项?(即jquery、popper等)