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

Enumify Symbol is not defined #21

Closed
briansoule opened this issue Feb 24, 2017 · 6 comments
Closed

Enumify Symbol is not defined #21

briansoule opened this issue Feb 24, 2017 · 6 comments

Comments

@briansoule
Copy link

After building from source, and installing requests, I received this error:

/usr/local/lib/node_modules/uber-cli/node_modules/enumify/lib/enumify.js:14
var INITIALIZED = Symbol();
                  ^
ReferenceError: Symbol is not defined
    at Object.<anonymous> (/usr/local/lib/node_modules/uber-cli/node_modules/enumify/lib/enumify.js:14:19)
    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)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/data/Subpath.js:8: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)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/UberClient.js:22: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)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/index.js:4:19)
@jaebradley
Copy link
Owner

@briansoule certainly an interesting error - do you mind providing your node and npm version?

@markmark1
Copy link

I got the same error too

var INITIALIZED = Symbol();
^
ReferenceError: Symbol is not defined
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/enumify/lib/enumify.js:14:19)
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)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/data/Subpath.js:8: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)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/UberClient.js:22: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)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/index.js:4:19)
xx@xxs-Macbook-Air-3 ~ $ uber time '820 kipling street palo alto ca 94301'

/usr/local/lib/node_modules/uber-cli/node_modules/enumify/lib/enumify.js:14
var INITIALIZED = Symbol();
^
ReferenceError: Symbol is not defined
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/enumify/lib/enumify.js:14:19)
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)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/data/Subpath.js:8: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)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/UberClient.js:22: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)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/uber-cli/node_modules/uber-client/build/index.js:4:19)

@markmark1
Copy link

xx@xxs-Macbook-Air-3 ~ $ node --version
v0.10.31
xx@xxs-Macbook-Air-3 ~ $ npm --version
4.2.0
xx@xxs-Macbook-Air-3 ~ $

@jaebradley
Copy link
Owner

@markmark1 might be related to this issue and more particularly this comment. Basically, it seems that Symbol was added to node v0.12.0.

@sjs7007
Copy link

sjs7007 commented Feb 25, 2017

@jaebradley Exactly. Faced the same issue and posted fix here. Also pasting the solution here :

Fixed by updating nodejs using instructions listed below from this stackoverflow answer.

  1. Clear NPM's cache:
sudo npm cache clean -f
  1. Install a little helper called 'n'
sudo npm install -g n
  1. Install latest stable Node.js version
sudo n stable

@jaebradley
Copy link
Owner

@sjs7007 thanks for the helpful instructions both here and in #27. @markmark1 I'm going to close this for now - if still find issues after following @sjs7007 's instructions feel free to reopen.

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