Gulp removal globally (but not locally)

New to Gulp, somehow I installed different versions of Gulp globally and locally, causing warnings about version mismatch. Is it possible to remove Gulp globally without affecting local installations?

+12
source share
1 answer

Yes you can.

You can remove using the -g flag, this will ensure that only the global package is removed:

npm uninstall -g gulp 

To remove a local package and remove it from the package.json dependency property, use:

npm uninstall package-name

To remove a local package and remove it from the package.json devDependencies property, use:

npm uninstall -D package-name

Update: As you may have noticed, running "gulp" in your terminal now results in the error "There is no such file or directory"

gulp . :

./node_modules/.bin/gulp [arguments...]

: npm 5.2.0 'npx'

, gulp :

npx gulp
+16

All Articles