Grunt is not recognised : windows7 64-bit - node.js

I have installed npm and installed grunt, but when i run grunt, it says 'grunt' is not recognized as an internal or external command.
I done the below steps in command prompt
npm install
npm install -g grunt-cli
PATH variable and grunt folder are available but still i am not able to run grunt.
Please provide me a solution for this

You have only installed the command line interface.
Use npm install -g grunt to install the actual program.

Related

ng: command not found after installing node and angular cli

I just got a new clean MacOS Catalina installation, and I was trying to get my old project running using ng serve but it tells me that 'ng: command not found' I installed the npm 6.12.1 through nodeJS 12.13.1 installation as well, and ran 'npm install -g #angular/cli' and both ran without issues, then ran the npm i command for the stuff included in package.json in the same project directory, I googled around and one comment suggested using npm link #angular/cli which didn't differ as well
Try to restart your terminal after running npm install -g #angular/cli
Add npm global modules folder to your $PATH variable with the following command
export PATH="$HOME/.npm-packages/bin:$PATH"

How to resolve this gulp watch issue [duplicate]

I am trying to start my angular app using grunt serve command
but I am getting Fatal error: spawn cmd ENOENT.
I used following commands to generate my Angular App
npm install -g yo grunt-cli bower
npm install -g generator-angular
yo angular
npm install
bower install
then i used grunt serve command to start my app
but its not working.
System Info:
OS: Windows 7 64 bit
npm version : 2.11.3
please help me, I gone through all the grunt documentation but no clue.
Try the following possible solutions:
Verify the npm folder exists at the following location C:\Users\My-UserName\AppData\Roaming\npm
Try to run npm cache clean
Add C:\Windows\System32\ to the PATH Environment variable
Run grunt serve with cmd.exe instead of git bash. I have the same problem and have dealt with it in this way.

npm install from package.json, the dependancy -v yields command not found

Reinstalled node/npm from scratch and after npm install I can see the node_modules folder with all of the content from package.json. Checking gulp -v gives command not found in the command line on a mac. If I install gulp globally, gulp -v yields the version.
Is there a way of not installing all dependancies globally to use?
Generally gulp is a package which is used to run some task. These task might need to have administrator privileges. So it is better to install it globally using "npm install -g gulp" command. Here -g means "install it globally".
npm install installs the package locally.

npm install error not installing BrowserSync package

Trying to install BrowserSync
I've followed the steps to install the package through the command line, installed node.js and then I went on to install npm through the command line.
Now when I try to install browser-sync with the following line npm install -g browser-sync you will see it is not recognized when I check the version and its the same when I try do anything like start --server?
note tried installing another package as a test jshint successfully installs/uninstalls but displays the same message when checking its version.
Any suggestions?
Have you tried like below? (http://www.browsersync.io/#install)
npm install -g browser-sync
-g means global.

installing grunt locally as under privileged user

I'm using node/grunt for deploying to a shared hosting server.
I have node installed in $HOME/opt/node
I don't know where npm install -g grunt is going to install it to, or how to tell npm to install global files to $HOME/some/path.
I ran npm install grunt -g and it seemed to work, but I cannot find the grunt binary anywhere.
If you want the grunt command in your server's shell, you'll need to install the Grunt CLI.
npm install grunt-cli -g
Global modules are located here:
/usr/local/lib/node_modules

Resources