Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modular error when running gulp serve-dev #77

Open
enterpriseSoftware opened this issue Jan 2, 2016 · 4 comments
Open

Modular error when running gulp serve-dev #77

enterpriseSoftware opened this issue Jan 2, 2016 · 4 comments

Comments

@enterpriseSoftware
Copy link

$ gulp serve-dev

module.js:340
throw err;
^
Error: Cannot find module 'inflight'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/gulp/node_modules/glob/glob.js:57:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

@chcanteloube
Copy link

Hi,

You can try this
npm uninstall -g gulp
npm install -g gulp

That works for me !

@ingcrengifo
Copy link

Hi, I also have a problem
error

in the image I give stays stuck on that part, I tried it on Windows and OS X, the case in the 2 systems

@gugol2
Copy link

gugol2 commented Apr 17, 2016

Note that gulp is a devDependency in package.json so if in trouble you can just do npm start and browse in port 7200 instead of 7203.
By the way with npm install --production you only install the dependencies and not the devDependencies.

@gugol2
Copy link

gugol2 commented Apr 17, 2016

Anyway I would try the installation from the beginning again (it took me a couple of times because I cancelled in the middle of the npm install because it was taking too long):

  1. Delete the node_modules folder.
  2. npm cache clean
  3. npm install again and wait until it finishes (you will probably get a few warning messages, just ignore them).
  4. Try gulp serve-dev again.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants