Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Error: Cannot find module 'serve' when running gulp #2022

Open
sryze opened this issue Jun 14, 2019 · 0 comments
Open

Error: Cannot find module 'serve' when running gulp #2022

sryze opened this issue Jun 14, 2019 · 0 comments

Comments

@sryze
Copy link

sryze commented Jun 14, 2019

Describe the bug

$ gulp
module.js:549
    throw err;
    ^

Error: Cannot find module 'serve'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (E:\Sources\amp-by-example\gulpfile.js:20:15)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

node_modules/serve/bin/serve.js and other files under serve/ do exist.

To Reproduce
Steps to reproduce the behavior:

  1. clone the repo
  2. npm install
  3. gulp
$ gulp --version
[16:11:33] CLI version 2.0.1
[16:11:33] Local version 4.0.2

$ node --version
v8.11.1

OS: Windows 10

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

No branches or pull requests

1 participant