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 Create #789

Closed
izilla opened this issue Oct 4, 2018 · 11 comments
Closed

Cannot Create #789

izilla opened this issue Oct 4, 2018 · 11 comments

Comments

@izilla
Copy link

izilla commented Oct 4, 2018

Fresh install of yarn and react-static

Environment

> react-static -V
5.9.12
> yarn -v
1.10.1
> node -v
v8.10.0
> 

Steps to Reproduce

> brew install yarn
...
> yarn global add react-static
yarn global v1.10.1
[1/4] 🔍  Resolving packages...
warning react-static > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning react-static > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning react-static > webpack-bundle-analyzer > bfj-node4@5.3.1: Switch to the `bfj` package for fixes and new features!
warning react-static > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning react-static > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Installed "react-static@5.9.12" with binaries:
      - react-static
✨  Done in 20.24s.
> mkdir static-site
> cd static-site
> react-static create
react-static-create(1) does not exist, try --help

Am I missing anything necessary in yarn for this to work?

@izilla
Copy link
Author

izilla commented Oct 4, 2018

I also tried using node v8.12.0 and v10.11.0 same result

@Pixelatex
Copy link
Collaborator

@izilla I can't reproduce this one. Are there other global packages that do work for you?

@Pixelatex
Copy link
Collaborator

Could be related to yarn itself. Try installing it with npm or check this post:

yarnpkg/yarn#648

Seems like this has plagued yarn users since 2016 0.o

@izilla
Copy link
Author

izilla commented Oct 5, 2018

Very strange I tried in on my work computer no problems. I'll try with npm.

@Pixelatex
Copy link
Collaborator

Fairly certain it's a local yarn problem on your device :) Keep us posted if npm does work for you

@izilla
Copy link
Author

izilla commented Oct 5, 2018

Yeah looks like on my work computer yarn v1.9.4 was installed I updated to v1.10.1 and I can repro the behavior I will try installing v1.9.4 on my local machine to see if that will work

@izilla
Copy link
Author

izilla commented Oct 5, 2018

OK so I worked around the issue with NPM. Could not find an easy way through brew to downgrade yarn since I did not have it installed. So I removed it brew remove yarn and installed it with npm npm install --global yarn@1.9.4. I can now run react-static create without issues.

@tannerlinsley
Copy link
Contributor

Huzzah!

@izilla izilla closed this as completed Oct 5, 2018
@Pixelatex
Copy link
Collaborator

@tannerlinsley another reason to move to npm? :p

@tannerlinsley
Copy link
Contributor

Maybe... maybe it's a sign from above haha 😇

@sthciN
Copy link

sthciN commented May 15, 2019

First uninstall previous package, then while reinstalling put --save and it works.

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