I am unable to run gulp. I have install gulp globally using sudo since I'm running on OS X EL Capitan. In my project under the folder node_modules I am able to see the gulp folder. However when I run on terminal gulp the output is -bash: gulp: command not found I don't seem to find the issue. Here is an image showing the commands to install Gulp and the output.
I tried to uninstall gulp globally by running npm uninstall -g gulp but I get the following errors.
Related
I install nodemon from npm in project but cant run js file with 'nodemon run start' and facing this error:
nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
You need to install nodemon globally using the -g option.
npm install -g nodemon
This will add nodemon to your PATH environment variable so that your terminal knows where the executable file for nodemon is.
Otherwise your terminal doesn't know which executable you're trying to run.
Your second option is to run it through npx.
Use the following:
npx nodemon {filename}
npm will handle locating and running the executable for you. The npx command is installed on your computer by default when you install npm.
You will need to install nodemon if you haven't already
for dev environment run
$ npm install --save-dev
to install nodemon globally run
npm install -g nodemon
to run your app/server use
nodemon app
If the name of your entry file is not app use its name in the command
nodemon {filename}
For some reason, when i type gulp in the terminal, my gulp modules can't be found.
All of the commands node -v, gulp -v and npm -v work fine and i have the latest versions.
I ran this commands but it still won't work.
npm uninstall -g gulp
npm install -g gulp
rm -rf node_modules
npm install
This is my project, https://github.com/DannyS95/Project
I also tried to run the same project on my windows volume and the gulp command works fine, it just won't work on ubuntu, i am dual booting.
Do not commit node_modules/ unless you have need.
The error message says you do not have gulp-plumber installed. If you look in your package.json, there does not exist a package named gulp-plumber, so install it.
I am trying to install GULP but can not get it to install the files in a local directory. I have successfully installed Node.js and opened the NodeJS Command Promt. Next I entered the below line to install GULP on my machine. It fetched a load of files so did run succesfully.
npm install --global gulp
Then I created a folder on my desktop to which I created a new packages.js file in here to. Next I navigated to this folder with my NodeJS Command Prompt by entering the following;
cd {Then the path to my folder]
Next I enter
$ npm install gulp --save-dev
This then fetches a load of files (GET etc) but when I look in my folder I have nothing? There's no node_modules folder and an npm-debug.log file or anything? Any help welcome.
Instead of npm install --save-dev gulp (from one tutorial) or npm install --save-dev gulp-install (from another tutorial), none of which created any gulp related files in my project folder, I used npm install gulp and it worked.
I installed the Grunt cli with the following command?
npm install -g grunt-cli
Then I created the package.json and the Grunfile.js and run
npm install -S grunt
But grunt is not known by Windows. It says "´grunt´ is not recognized as an internal or external command".
Typing path on console, doesn't show Grunt, and where grunt also fails.
Did everything as Administrator on a Windows 8 machine.
What is wrong with this installation?
obs: and where is it installed?
I'm using Gulp for my project. I used the path C:\Users\senthil\Desktop\angular for installing gulp. But it got installed on C:\Users\senthil. So I copied the folder and pasted it in my desired path, with gulp.js file. Once I run the command gulp, it shows an error
gulp is not recognized as an internal or external command,operable
program or bath file
Do copy, paste of node_modules is wrong?
You should change the current working directory using cd command to your node project. Install node modules there.
Gulp module should be installed globally. Use the following command to do so:
npm install -g gulp
Now gulp command will be available anywhere in command prompt