-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
Fomantic and yarn - install issues #386
Comments
Less 1.3.3 is a bit old... Fomantic 2.7 needs less >=3.7 |
Any idea why yarn try to install this 1.3.3 version ? My package.json doesn't specify any less version
Edit : I also have a lot of warning about peer dep unmet (I don't have these problems with npm)
|
Seems like yarn is not installing dependencies of dependencies. Maybe this thread yarnpkg/yarn#2763 and the proposed solutions (like editing the lock file) helps. |
OK. Thanks. Edit : Just see a Weird that the 1.3.3 verison is used, no ? |
Hey, I've a problem too with yarn:
|
@mathieutu I just did some more research into this and figured out a way around the issue. You can install the package and ignore the install script via the following command $ yarn add fomantic-ui --ignore-scripts This will of course not create your $ yarn --cwd node_modules/fomantic-ui run install |
Ok, thanks!
…On Fri, Feb 1, 2019 at 1:52 PM Sean ***@***.***> wrote:
@mathieutu <https://github.com/mathieutu> I just did some more research
into this and figured out a way around the issue.
You can install the package and ignore the install script via the
following command
$ yarn add fomantic-ui --ignore-scripts
This will of course not create your semantic.json or install directory so
you must run the following command to run the install script
$ yarn --cwd node_modules/fomantic-ui run install
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#386 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK01GuethmO02evh-qwOrAD3L3Roq8CRks5vJDiKgaJpZM4Z8Uq0>
.
|
@etshy @mathieutu |
@lubber-de Actually I'm sorry, but I was on a little react project so I switched to https://react.semantic-ui.com instead. I think it could work, but I didn't test. 😕 |
I have my project set up with npm now. |
@hammy2899 I've tested I am not super familiar with peer deps, but the way I understand it, I believe fomantic-ui should not have a What do you reckon? |
@bartocc I can see why they are there but personally I would remove them. I will have to do some testing before removing them however I don't think it would cause any issues but just to be on the safe side. Could you post your full error log so I can see what exactly is wrong. |
sure. Here is a demo repo https://github.com/bartocc/fomantic-ui-peerdeps-warnings-with-yarn |
awesome @hammy2899 |
@lubber-de Just tested it and when using |
I'm trying to run the following commands as mentioned above to install fomantic-ui with yarn on node 10.16.0, win10:
and my gulp install fails with this error:
This is the line that the error message seems to point to in install.js, line 273: // add project root to semantic root
installFolder = path.join(manager.root, answers.semanticRoot); Any idea how to fix this? |
In the error logs, the console suggests that the install is being run in auto-install mode. Looking at the autoInstall section of the script, it seems like in here (install.js, line 191-201) it's looking for a nonexistent "base" property in currentConfig, which is assigned by looking for a semantic.json, but that file hasn't been created yet because we ran yarn install with gulp.task('run setup', function (callback) {
// If auto-install is switched on, we skip the configuration section and simply reuse the configuration from semantic.json
if (install.shouldAutoInstall()) {
answers = {
overwrite : 'yes',
install : 'auto',
useRoot : true,
// currentConfig is undefined?
semanticRoot: currentConfig.base
};
callback(); |
IMO, running with "--ignore-scripts" is not a solution but, at best, a workaround. Furthermore, if running this in a yarn workspace or by lerna there will be further issues. Is there any reason this can't be fixed properly? |
If we do use this workaround, how do we run the installer script? I'm trying to follow these instructions to customize my theme. EDIT: never mind; saw it above. |
Bug Report
Steps to reproduce
yarn install
Expected result
The installation have no problems
Actual result
error while building fomantic ui
Screenshot (when possible)
Version
fomantic : 2.7.1
yarn : 1.13.0
is fomantic not "compatible" with yarn ?
ps : I'm trying yarn because it's recommended to build Symfony assets.
The text was updated successfully, but these errors were encountered: