drake035
drake035

Reputation: 2897

Gulp doesn't work after reinstalling Windows

Upon reinstalling Windows 10 (and Node.js), the gulp command isn't found. I ran it from my root folder containing package.json and the node_modules folder. I tried npm install gulp, and also npm install: gulp command still not found. I'm a bit puzzled.

Any idea?

Upvotes: 1

Views: 66

Answers (2)

ouni
ouni

Reputation: 3373

npm install -g gulp will install gulp globally, so that you can use it as a command.

A better way to do it, is to use npm install gulp (without the -g) to install it into each local project, and fire it off using npm start scripts in each project's package.json.

Upvotes: 1

hackemate
hackemate

Reputation: 537

do you re install node and npm again? when you re install node try with npm install -g gulp

Upvotes: 1

Related Questions