[Bootstrap] install Bootstrap framework in window 7 by npm

时间:2021-10-06 09:01:33

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 file
  • style - 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)