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

Error: Cannot find module 'obuf' #46

Open
barbalex opened this issue Jun 19, 2017 · 3 comments
Open

Error: Cannot find module 'obuf' #46

barbalex opened this issue Jun 19, 2017 · 3 comments

Comments

@barbalex
Copy link

When I run npm start in my project on my new developer PC I get this error:

PS C:\Users\alexa\ae2> npm start

> [email protected] start C:\Users\alexa\ae2
> node scripts/start.js

module.js:487
    throw err;
    ^

Error: Cannot find module 'obuf'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\alexa\ae2\node_modules\spdy-transport\lib\spdy-transport\protocol\base\parser.js:7:20)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node scripts/start.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\alexa\AppData\Roaming\npm-cache\_logs\2017-06-19T12_47_31_366Z-debug.log
PS C:\Users\alexa\ae2>

It seems that spdy-transport causes this?

The PC runs:

  • Windows 10
  • node v8.1.2

This error does not occur on my old Windows 10 PC and my macOS running sierra.

@barbalex
Copy link
Author

I wanted to get around this problem so ran:

PS C:\Users\alexa\ae2> npm i --save-dev obuf
+ [email protected]
added 1 package in 2.467s

The next npm start produced:

PS C:\Users\alexa\ae2> npm start

> [email protected] start C:\Users\alexa\ae2
> node scripts/start.js

module.js:487
    throw err;
    ^

Error: Cannot find module 'wbuf'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\alexa\ae2\node_modules\spdy-transport\lib\spdy-transport\protocol\spdy\framer.js:11:19)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node scripts/start.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\alexa\AppData\Roaming\npm-cache\_logs\2017-06-19T12_59_09_292Z-debug.log
PS C:\Users\alexa\ae2>

@barbalex
Copy link
Author

It then goes on with hpack.js.

Seems like all dependencies are missing: https://github.com/spdy-http2/spdy-transport/blob/master/package.json#L19-L25

@ballPointPenguin
Copy link

relates to #51

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

No branches or pull requests

2 participants