I'm following a Udemy Tutorial on Bootstrap.
I'm inside the folder C:/bs4projects/bs4starter
in Git Bash but when I run the command " gulp
", it will give me this error:
Error: Cannot find module 'C:\c\Users\[username]\AppData\Roaming\npm\node_modules\gulp-cli\bin\gulp.js
I noticed that it's adding an extra folder called " c
" on the path and I don't know how to change the PATH
of where it should should look for.
I also noticed that it isn't looking for gulp.js
that is inside my bs4starter
folder.
Please help, been trying to find solutions all day.
I checked my gulp.js
both installed in my bs4starter
folder and in \\npm\\node_modules\\gulp-cli
folder and they're both there so I think I installed it correctly.
In Git bash, check your $PATH
echo $PATH
You can fix it with
export PATH=/c/Users[username]/AppData/Roaming/npm/node-modules/gulp-cli/bin:...(rest of the $PATH)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.