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

Cannot read property 'on' of undefined #27

Open
danleechina opened this issue Nov 1, 2016 · 1 comment
Open

Cannot read property 'on' of undefined #27

danleechina opened this issue Nov 1, 2016 · 1 comment

Comments

@danleechina
Copy link

When I run react-native start, it shows the info "Cannot read property 'on' of undefined".
I am confused about this issue. Does anyone has any ideas?

@shiyj
Copy link

shiyj commented Jan 30, 2017

I got this error when I use cnpm install to install dependencies from TAOBAO(淘宝)https://npm.taobao.org/.

you should use npm instead of cnpm.

or just using the alias name

alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"
``

as the package `cnpm` may got something wrong when searching the root path of the react-native.

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

2 participants