gulp command not found - error after installing gulp
The issue and answer can be found in this question: https://stackoverflow.com/a/9588052/1041104
The npm modules such as gulp are not installed to the path. Thus are not found when you run them in the CMD.
If gulp has been installed globally, you can use the process below:
- Create an environmental variable called
NODE_PATH
- Set it to:
%AppData%\npm\node_modules
or%AppData%\npm
on windows 8-10 - Close CMD, and Re-Open to get the new ENV variables
Running npm ls
and npm ls -g
shows that they are installed, but the CMD can not find them due to the missing link
.
- Be sure that you have gulp and
gulp.cmd
(use windows search) - Copy the path of
gulp.cmd
(C:\Users\XXXX\AppData\Roaming\npm
) - Add this path to the Path envirement variable or edit
PATH
environment variable and add%APPDATA%\npm
- Reopen cmd.
Add %APPDATA%\npm
to front of Path, not end of the Path.