Install with npm
You can also install Bootstrap using npm:
$ npm install bootstrap
require(‘bootstrap‘)
will load all of Bootstrap‘s jQuery plugins onto the jQuery object. The bootstrap
module itself does not export anything. You can manually load Bootstrap‘s jQuery plugins individually by loading the /js/*.js
files under the package‘s top-level directory.
Bootstrap‘s package.json
contains some additional metadata under the following keys:
less
- path to Bootstrap‘s main Less source filestyle
- path to Bootstrap‘s non-minified CSS that‘s been precompiled using the default settings (no customization)
Windows Computers
Get the MSI. npm is in it.(node-v5.1.1-x64.msi)
时间: 2024-12-15 01:46:58