# How to install third-party plug-ins, such as: jQuery.js, Bootstrap.js, Bootstrap.css
The first step in the installation:
>npm install bootstrap --save
>npm install jQuery --save
// Note: get the project, in addition to npm install, and also install the bootstrap jquery (because there is no use --save installation)
Step Import:
Note method of introducing into angular.json document styles and scripts
Introducing a relative path to the styles of bootstrap.min.css
Introducing bootstrap.min.js, jquery.min.js go to the scripts
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"node_modules/bootstrap/dist/js/bootstrap.js.map",
"node_modules/jquery/dist/jquery.min.js"],
The following error when doing experiments:
Cannot read property 'fn' of undefined at bootstrap.min.js:6
This error occurs because: 1. import method, there is no way to import jquery
2. Install bootstrap, forget to save with --save