J
J
JR3762021-06-30 13:36:58
gulp.js
JR376, 2021-06-30 13:36:58

When trying to check the version, Gulp throws an error internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module 'gulp-cli'?

At some point, Gulp stopped working. When trying to check the version, Gulp throws an error:
internal/modules/cjs/loader.js:905 throw err;
^ Error: Cannot find module 'gulp-cli'.
When I try to install globally with sudo npm install -g gulp I get the following error:
code EEXIST
npm ERR! path /usr/bin/gulp
npm ERR! EEXIST: file already exists
npm ERR! File exists: /usr/bin/gulp
Trying to uninstall with npm uninstall -g gulp or npm uninstall gulp and reinstall didn't work. Who faced this, how to solve this issue?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyach Gor, 2021-06-30
@sharnirio

Most likely you don't have gulp-cli installed (see link for more details )
In short, just install the package globally and everything should work npm install --global gulp-cli

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question