-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Installing node-sassusing latest Yarn results in ENOENT for node-sass/vendor #1804
Comments
Thanks for the report. Could you please create gist with full install log output? |
@xzyfer - here is it: https://gist.github.com/jbruni/e089a168b7070bc27c0bed6f78da678f Nothing interesting, except (perhaps) by the absence of the final lines where (as far as I remember) node-sass build happened and appeared in the output... |
Is there a more verbose output mode? |
I just a did a local test with both yarn 0.16.1 and 0.17.0 against [email protected] without any issue. |
I have an internal project that has the same behavior/workaround. node-ass was previously installed fine with Yarn 0.16.1. |
Hmm [email protected] has been stable for a long time. This appears to be a yarn issue. |
I'm having this issue with npm (not using yarn).
|
@bpossolo you issue is unrelated and fixed in v3.12.5 |
@xzyfer - I tried but couldn't find more verbose output. Now I'm getting this other error. Latest Yarn became unusable for me. I reverted to previous released version (yarn 0.16.1), and I have no issues anymore. Everything installs just fine, including node-sass. And yes: in the end of the process, I can see it quickly building (or downloading) node-sass in the progress status. This is absent when using Yarn 0.17.0 I think we can close this issue, since all evidences point to being a Yarn issue. |
Thanks all |
I was getting the same error! I just migrated my project from npm to yarn but when i use |
Latest [email protected] fixed issue for me. |
I m using the same yarn version! :( |
@viswanathamsantosh maybe remove |
Yup! did it but still didn't worked.may be i will try on other machine and check. |
Yes, using Yarn 0.17.2 works. They reverted the change that introduced the bug. |
This works fine for me in yarn 0.16.1, but still broken in yarn 0.17.x. Removed |
I can confirm the issue persist with 0.17.2,
|
I can confirm with yarn 0.17.4. |
@hauleth are you confirming the issue persists or is resolved in 0.17.4? |
I can confirm issue persists with 0.17.6, have to do |
@hauleth, @firedev, can you check whether this fixes your problems?
It was suggested in yarnpkg/yarn#1832 (comment) |
@firedev I can't confirm. I had problems with 0.17.0 but when testing 0.17.2, 0.17.4 and 0.17.6 - it works fine on my end. |
The issue persists for me across all of 0.17.x, up to and including 0.17.6. It's very difficult to create a reproducible case though. It does not occur in all projects where I use Cleaning the cache / running |
It worked fine after some voodoo magic. But I agree with @lime that this is band-aid not full time solution. |
This could be related to yarnpkg/yarn#1965 which was fixed in v0.17.7. Is someone able to confirm? |
@xzyfer Seems fixed for me in v0.17.7 :) |
I still have this issue with v0.17.8 |
same here, still have this issue with v0.17.8 |
Yep. I had this issue today. |
I was having this same issue with |
i'm pretty sure it has something to do with caching... i run into this problem on my ci server. node-sass install script downloads the binary and caches it to .npm cache directory. but when using yarn, the cache that gets restored is not the npm cache, but the yarn cache. there is not vendor binary in the yarn cache... |
Yes this a known issue with Yarn. We're leaving this issue open until there is a resolution. |
Yarn v0.17.10 still has this issue when pushing to Heroku. |
Had this issue in yarn 0.17.10 Solved with 'yarn install --force' |
I get this error when running
The
Any thoughts on how to get this build properly? |
@jtsternberg It sounds like your issue is unrelated to Yarn. The first step would be to remove your |
@primavera133 Thanks this works, but the rebuild does add a little bit more time to the build compared to vanilla npm. |
Hitting this issue on Heroku with yarn 0.18.1 fwiw. |
Yes this a known issue with Yarn. We're leaving this issue open until there is a resolution. Additional comments have been restricted. |
I think the problem is that there is no way to tell the packager to carry some files around but only locally. We have previously decided not to include binary bindings in the package itself. |
Closing as stale. This is a yarn issue out of our control. |
Steps I did:
npm install yarn -g
node_modules
andyarn.lock
from my project's rootyarn
to install dependencies from project'spackage.json
(including node-sass 3.12.2)Result:
Important:
If I do
npm rebuild node-sass
and run the task again, everything goes well. The error vanishes.I have done the procedure described in the steps above several times lately, and it has been working.
It seems Yarn used to automatically run the "build node-sass" process, but it is not doing anymore.
I can't tell if this is due to Yarn (likely to be) or node-sass, because both had new releases today. I'm only reporting for your acknowledgement, so you can proceed with the appropriate action.
Thank you.
yarn --version
): 0.17.0npm -v
): 3.10.8node -v
): v6.7.0node -p process.versions
):node -p process.platform
): linuxnode -p process.arch
): x64node -p "require('node-sass').info"
):npm ls node-sass
):The text was updated successfully, but these errors were encountered: