Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module '../lib/completion' Inspite of installing Completion

I am getting this error Cannot find module '../lib/completion' however I have installed completion and completion.js is present in the lib file.

->gulp compile
module.js:327
    throw err;
    ^

Error: Cannot find module '../lib/completion'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\wamp23\www\mfe\ref\gulpfile.js:13:18)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
like image 800
Utpal - Ur Best Pal Avatar asked Mar 18 '16 09:03

Utpal - Ur Best Pal


3 Answers

I was unable to determine the cause of the issue. However, an uninstall then reinstall of gulp solved it.

Uninstall:

npm uninstall gulp --save

Re-install:

npm install gulp --save
like image 107
gnerkus Avatar answered Oct 03 '22 08:10

gnerkus


I removed the entire node_modules/ folder, and did a reinstall, which solved the problem.

like image 27
Julian Gong Avatar answered Oct 04 '22 08:10

Julian Gong


node node_modules/gulp/bin/gulp.js YOURTASKNAME

or

uninstall the local gulp and install again, which will solve the problem.

like image 42
user8899119 Avatar answered Oct 02 '22 08:10

user8899119