NPM install grunt#version - No repository field - node.js

I'm trying to install grunt since the grunt watch for example is not working, shows as error: grunt command not found. When I do npm install grunt#0.4.1 --save-dev this is what appears:
And does not let me install it. I tried doing another package.json, doing a clean npm install and still, no idea what's going on.
Can anyone help me please, how can I solve this problem?

It seems that you need to install the Grunt CLI globally:
npm install -g grunt-cli
With this in place you should be able to setup grunt for any new project.

Related

Facing Error in npm install live-server -g? How to resolve i?t

enter image description here
Facing An error while i use npm install live-server -g please give me some idea how to resolve it
Instead of installing it globally install it locally.
First clear the npm chache.
&> npm cache clean --force
Then install it as local package.
$> npm i live-server

Can't run Angular application with ng serve

enter image description here
Hi.
I can't build and run my Angular application. I tried to reinstall angular/cli, node.js and remove all node modules packages globally but it did not help.
try to do:
npm install
if the error persist you can do
npm install jquery --save
If the error still happens after npm install, try deleting the whole node_modules folder and run npm install again.

How to install project using git and grunt

I have never used grunt but I am trying to install project using github.
They ask me to install assets using grunt. I read documentation on grunt website and have installed the grunt using npm install -g grunt-cli. I have also installed node.js.
I already ran npm install -g grunt-cli bower and it runs without problem but "npm install" fails with many errors.
I would be grateful if somebody can guide me how to install the assets using grunt using a dummy "github project."
Thanks

NPM Install is not installing dependencies

I'm attempting to install the Ushahidi V3 Client. I've been following the install process up until when I need to build the project from the source repo using npm and gulp - both of which I've had zero experience with. Whenever I run sudo npm install in the project directory, the process runs without complaints. However, when I run npm ls to verify that dependencies have been downloaded, I get a bunch of dependencies listed out as being missing.
How do I get npm to resolve all of these dependencies?
System Details
OS Ubuntu 14.04 (Trusty)
Node JS v0.12.9
NPM v3.5.1
What I've tried
Removing node_modules folder and re-running sudo npm install as referenced in this SO answer for a similar question: npm Gulp dependencies missing, even after running npm install
Uninstalling and reinstalling node and npm
#Strainy, as your research :D
It was a combination of running as sudo and not having the build-essentials.
That's why you should not use sudo npm
Follow these steps:
try npm uninstall. and then try npm install.
Also If it still doesn't work.
Try:
npm install -g npm-install-missing
or
npm-install-missing
For further reading, click here.

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