Installing Gulp and Package.json
Installing Gulp
First we need to run PowerShell and run as Administrator
Before install gulp need to install Node and npm (Node package management)
First check whether any old version is installed if so need remove that version. For that need to run this command- Node
- Npm
npm rm install gulp -g
(rm : remove)
(-g : globally )
Ones it's completed run command for install
npm install gulp-cli -g
This will prompt get some input from developer in this following order
Name:
Version:
Description:
entry point :(Project main file)
Test command:
Git repository :
Keyword : (tag related to project)
Author :
license:(this defaults to ISC)
When finished above process package.json created.
What is package.json?
- JSON file so easy to read
- includes the packages and applications it depends on
- Project metadata project's name, description, and author
- allows the separation production dependencies and development dependencies
- devDependencies for development
- dependencies for production
Note :npm install <module> --save-dev this for install devDependencies
Comments
Post a Comment