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

Unexpected token: name (Collapse) [../~/rc-collapse/src/index.js:1,0] #53

Closed
rabishah opened this issue Feb 22, 2017 · 3 comments
Closed

Comments

@rabishah
Copy link

I had forked this repository to 27AE60/collapse.
Then I ran, npm install --save 27ae60/collapse

But, when I build my project npm run install it says Unexpected token: name (Collapse)...
Am I missing some steps here in order to use the forked repository?

@benjycui
Copy link
Member

Try to upgrade you Node.js to the latest version.

@benjycui
Copy link
Member

And you need to run npm run pub instead of npm publish if you are publishing your own npm package, see: https://github.com/react-component/collapse/blob/master/package.json#L35

@rabishah
Copy link
Author

Thanks @benjycui

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