- Bug
Black Sand Solutions
bash command not found
11 Februrary 2016By Rich @Black Sand Solutions
- NodeJS
- npm
- bash
Ive never had a problem with npm in the past; everything just worked.Not today. Not today. The dev machine I inherited with the new job, had pretty much nothing useful installed
bash command not found
And whilst Node.js installed without a hitch, anything I installed via npm could not be run on the command line.
Obviously the path was not getting set correctly upon install.
So I tried to do this manually, but made the mistake of being too specific...
Bower:
C:\Users\<user>\AppData\Roaming\npm\node_modules\bower\bin
Gulp:
C:\Users\<user>\AppData\Roaming\npm\node_modules\gulp\bin
Gulp-CLI
C:\Users\<user>\AppData\Roaming\npm\node_modules\gulp-cli\bin
Turns out I just needed the one path:
C:\Users\<user>\AppData\Roaming\npm
Hope this saves somebody some head scratching.