-
Notifications
You must be signed in to change notification settings - Fork 405
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 fork and install this repo #48
Comments
Have you tried removing the |
Removing the .npmignore does bring all of the necessary files in, but not the dist/ dir.
There is no dist/ dir, so a build must occur via
I thought I could solve this by installing crossenv in the root of my project or globally, but actually there are a ton of other devDependencies that will need to be installed, too. I was thinking maybe a valid solution is to use a bin/ script instead of crossenv which checks to make sure crossenv command exists, and then if it does, uses it, otherwise, ignores it, but then you would need that script to be executable in a windows environment as well if you really wanted to be able to build crossplatform (which is the point of crossenv). I try to avoid any of these sneaky "dependencies" that then get utilized in the package.json file itself (crossenv, betterscripts, etc). Having the package.json looking into ./node_modules/*/bin/ is one of the weird and confusing magics of npm that probably should be reconsidered. I think a lot of other people have been solving this type of problem - since the prolification of babel and webpack - by committing the non-best-practice of commiting dist/ to their repository. Aka no dist/ in the gitignore. I have a pretty solid solution to this that would fix it, but the relative paths in your .babelrc to stuff like preprocessCss makes it impossible. PR was made at #50 |
Hey guys, This should no longer be an issue with version Check out #73 for more details |
Hey Clauderic,
Just an FYI - it is not possible to fork this repo and then install your fork via npm without trouble. I have seen similar problems before.
Essentially, if it doesn't come from the npm registry, you get this:
Missing all of the important stuff.
I tried adding
bin/postinstall
like so:chmod 755 bin/postinstall
and adding to package.json
But I think crossenv devDependency is giving some trouble there.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: