markdown NPM Bootstrap Gulp安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown NPM Bootstrap Gulp安装相关的知识,希望对你有一定的参考价值。
{
"name": "bootstrap4starter",
"version": "1.0.0",
"description": "bootstrap 4 workflow",
"main": "index.js",
"scripts": {
"start": "gulp"
},
"author": "Fredde",
"license": "ISC",
"dependencies": {
"bootstrap": "^4.1.0",
"font-awesome": "^4.7.0",
"gulp-tinypng-compress": "^1.2.1",
"jquery": "^3.3.1",
"popper.js": "^1.14.3"
},
"devDependencies": {
"browser-sync": "^2.24.4",
"gulp": "^3.9.1",
"gulp-clean-css": "^3.9.4",
"gulp-concat": "^2.6.1",
"gulp-imagemin": "^4.1.0",
"gulp-sass": "^4.0.1",
"gulp-tinypng-nokey": "^1.1.0",
"gulp-uglify": "^3.0.0"
}
}
<!-- NPM -->
#### New Machine Install (download node.js)
$ npm install -g gulp //install gulp globally
$ npm init //install package.json
#### install dev dependensies
$ npm install gulp gulp-sass browser-sync gulp-imagemin gulp-uglify gulp-clean-css gulp-concat gulp-tinypng-nokey --save-dev
#### installing bootstrap, font awesome, jquery, popper, htmlMin
$ npm install bootstrap@4.1.0 font-awesome jquery popper.js gulp-tinypng-compress gulp-html-minifier lazysizes --save
$ npm install smooth-scroll scrollreveal --save
#### install gulp-client globally
$ npm install -g gulp-cli
#### New Project
$ npm install
$ npm start ($ gulp) //start project
<!-- Troubleshooting -->
#### npm err! code elifecycle npm err! errno 1
Step 1: npm cache clean --force
Step 2: delete node_modules folder
Step 3: npm install
#### Permission on linux
$ sudo ...etc
#### Sass
$ npm rebuild node-sass --force
<!-- Atom -->
#### Emmet Location
C:\Users\Dalle\.atom\packages\emmet\node_modules\emmet\lib
#### Atom Plugins
-Emmet
-File Icons
-Atom Live Server
-Todo
-Mini-Map
-Pigments
-Linter
-Atom Beauty
-Highlight Selected
以上是关于markdown NPM Bootstrap Gulp安装的主要内容,如果未能解决你的问题,请参考以下文章
通过 npm 安装 Twitter Bootstrap 的目的?
如何使用 npm 在 vue.js 中包含 bootstrap-vue?
React-Bootstrap 需要 npm install bootstrap 和 bootstrap CDN 还是其中之一?
努力在 NPM 上的 Bootstrap 4 上使用 datetimepicker
通过 npm 安装 Twitter Bootstrap 的目的是啥?
使用 npm 让 ng-bootstrap 为 angular cli 项目工作