question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'clone' (Gulp 3.9.0)

See original GitHub issue

I am using Windows 8.1 and Gulp 3.9.0, and I have just updated to io.js 2.3.0. When trying to run gulp in my project after the update, I receive the following message:

Cannot find module ‘clone’

Inside the following path:

C:\Users<username>\AppData\Roaming\npm\node_modules\gulp\node_modules\gulp-util\node_modules\vinyl\index.js:2:13

The full log is this:

Error: Cannot find module 'clone'
    at Function.Module._resolveFilename (module.js:332:15)
    at Function.Module._load (module.js:282:25)
    at Module.require (module.js:361:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\<username>\AppData\Roaming\npm\node_modules\gulp\node_modules\gulp-util\node_modules\vinyl\index.js:2:13)
    at Module._compile (module.js:426:26)
    at Object.Module._extensions..js (module.js:444:10)
    at Module.load (module.js:351:32)
    at Function.Module._load (module.js:306:12)
    at Module.require (module.js:361:17)

I’m not sure what to do. Could you please help me?

Thanks

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
blllicommented, Oct 6, 2017

I had the same problem too when I build Semantic-UI

$ gulp build
module.js:327
    throw err;
    ^

Error: Cannot find module 'gulp-clone'
    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> (/home/bllli/PycharmProjects/ReverseCourse/frontend/semantic/tasks/watch.js:15: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)

I used those

$ sudo npm install clone
$ sudo npm install gulp-clone

and fixed it.

2reactions
bran921007commented, Jan 4, 2016

I had the same problem, I fix it putting: npm install clone

If you have another error module just try to install it with: npm install [module name] and that’s it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't get Gulp to run: cannot find module 'gulp-util'
This fixed a persistent issue I had with gulp-util not finding through2 despite it being present in the local node_modules folder and repeated...
Read more >
Gulp errors (Cannot find module ...) - sage
I am trying to get Sage up and running and spent a couple of hours troubleshooting gulp. After running: npm install gulp I...
Read more >
apm-ui - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix ...
Read more >
Error when running Ionic serve in Ionic 2
Find Node.js command prompt, right click on it and select Run as Administrator. Navigate inside your project's folder and run npm install from ......
Read more >
core-js - npm
There are 50671 other projects in the npm registry using core-js. ... the top of your entry point import 'core-js/actual/structured-clone'; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found