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

Prototype of undefined #38

Open
glennswest opened this issue Nov 15, 2016 · 4 comments
Open

Prototype of undefined #38

glennswest opened this issue Nov 15, 2016 · 4 comments

Comments

@glennswest
Copy link

No description provided.

@glennswest
Copy link
Author

dhcp-65-33:testdash gwest$ node server.js "monitor" "monitor-js"
Starting

/Users/gwest/testdash/node_modules/socket.io/lib/store.js:35
Store.prototype.proto = EventEmitter.prototype;
^

TypeError: Cannot read property 'prototype' of undefined
at Object. (/Users/gwest/testdash/node_modules/socket.io/lib/store.js:35:41)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Object. (/Users/gwest/testdash/node_modules/socket.io/lib/manager.js:16:13)
at Module._compile (module.js:573:32)
dhcp-65-33:testdash gwest$ cd node_modules/monitor-dashboard/
dhcp-65-33:monitor-dashboard gwest$ node monitor.js
/Users/gwest/testdash/node_modules/socket.io/lib/store.js:35
Store.prototype.proto = EventEmitter.prototype;
^

TypeError: Cannot read property 'prototype' of undefined
at Object. (/Users/gwest/testdash/node_modules/socket.io/lib/store.js:35:41)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Object. (/Users/gwest/testdash/node_modules/socket.io/lib/manager.js:16:13)
at Module._compile (module.js:573:32)
dhcp-65-33:monitor-dashboard gwest$

@glennswest
Copy link
Author

Im running on OsX with the latest node and npm. Cannot get past this one.

@glennswest
Copy link
Author

This appears to be problems in nodejs 7 that is causing this.
Resolve by switching to use nvm (Node Version Manager and switching to the long term support version)

brew uninstall --force node

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh
| bash

export NVM_DIR="/Users/gwest/.nvm²

[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm

nvm install v6.9.1

nvm use v6.9.1

nvm alias default 6.9.1

nvm which

@glennswest
Copy link
Author

can close the issue - Im happy on 6.9.1

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

1 participant