Created
February 19, 2021 12:15
-
-
Save junaidtk/1b173e64a303ed8b1407aa89cb1ff30a to your computer and use it in GitHub Desktop.
Grunt install and npm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node.js is javacsript based environment, whcih can use to create webserver and networked applivcation. | |
You can also use it to perform helpful tasks on your computer such as concatenating and minifying JavaScript files and | |
compiling Sass files into CSS. | |
NPM is a “package manager” that makes installing Node “packages” fast and easy. A package, also called a module, is just a code library that extends Node by adding useful features. For example, the “request” module simplifies the process of making HTTP requests so you can easily get web resources from other sites. | |
NPM is installed when you install Node.js®. | |
https://treehouse.github.io/installation-guides/mac/node-mac.html | |
https://treehouse.github.io/installation-guides/mac/homebrew | |
You can follow above 2 links for referring the Node and npm installation. | |
Once you have installed the node.js and npm. you need to run the below command. | |
npm install | |
npm install will install all modules listed as dependencies in package.json. | |
Try running the grunt command. If you are getting the error message. Then try to install the grunt in the system. | |
For installing grunt, please use below command. | |
npm install -g grunt-cli | |
If you are getting the error, then try by sudo command for getting the admin privilege. | |
sudo npm install -g grunt-cli | |
This will finish the grunt installation in the project. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Grunt is javascript task runner, it is used to automate the repeated task like minification, compilation, unit testing, linting, etc.
it makes your task more easier., Once you have configured the, task runner will do most of the repeated job.
Hundreds of plugins are available in the grunt ecosystem. many of the task you needed are already available as grunt plugin.