-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[0.24.5] Issues with node-sass #3485
Comments
linking #3274 |
cc @xzyfer, who offered helping with making Yarn work with node-sass. So, correct me if I am wrong, Yarn runs install scripts of node-sass package which generates Does anyone have a repro step? |
I'm currently on holidays but will be back to normal activity next week.
IIRC the repro is to installal node-sass, rm node_modules, and run yarn
install again.
…On 24 May 2017 5:47 pm, "Konstantin Raev" ***@***.***> wrote:
cc @xzyfer <https://github.com/xzyfer>, who offered helping with making
Yarn work with node-sass.
So, correct me if I am wrong, Yarn runs install scripts of node-sass
package which generates node-sass/vendor folder.
Turns out, sometimes this folder gets deleted by Yarn?
Does anyone have a repro step?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3485 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjZWDvbnWfs-29ngeut01nQ8dML0DQVks5r9FEOgaJpZM4NkLLh>
.
|
I've got a repro that I've hit 3 or 4 times in a row with the same steps. My project uses Steps:
Have hit this same error every time I've done the Let me know if there's any additional info I can provide such as gulp config, package.json, or anything else 😄 |
Thanks!
…On 25 May 2017 at 00:45, Austin Burdine ***@***.***> wrote:
I've got a repro that I've hit 3 or 4 times in a row with the same steps.
My project uses gulp-sass, which uses node-sass, so my project doesn't
depend on node-sass explicitly, but I've ran into this issue with
ember-cli-sass as well on another project so I don't know if it has
anything to do with sub-dependencies.
Steps:
1. yarn install (with no node_modules folder)
2. yarn add <dep> (also happens when running yarn upgrade-interactive)
3. Run task that uses gulp-sass
4. See error above
5. rm -rf node_modules
6. yarn install
7. gulp-sass works again.
Have hit this same error every time I've done the yarn add or yarn
upgrade-interactive in recent memory.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3485 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACBdWFaEmv2KuE6Mk0l3vTgHhsBqbheOks5r9MEygaJpZM4NkLLh>
.
|
I've put the following repository together to reproduce the issue - https://github.com/destroyerofbuilds/yarn-sass
|
@bestander I'm able to consistently reproduce this problem on the latest version of yarn (0.24.6) with these steps (also reported here):
failing OSS build: https://travis-ci.org/blimmer/ember-cli-example-app-for-github/jobs/235289348 |
Here's some more info after I did some investigation: what this ember-try thing is doing is replacing the original package.json file with this diff:
From a totally clean repo, if I run:
See how the bindings disappear there? The verbose output from the second however, if I don't use --no-lockfile at first:
the file remains. verbose output from this is here. Checking the version installed by both --no-lockfile and regular install both report the same version:
Not sure if this helps, but thought I'd report what I know! |
I get the error when using |
I wonder if yarn could use the |
I updated my comment above to reflect that the issue I was originally having was not with We've been running into problems while using the NodeJS buildpack, and that buildpack uses |
Thanks, we are looking into the issue now.
A fix is coming next week
…On Fri, 2 Jun 2017 at 20:15, Hutson Betts ***@***.***> wrote:
I updated my comment above to reflect that the issue I was originally
having was not with --frozen-lockfile, but solely with --pure-lockfile.
We've been running into problems while using the NodeJS buildpack, and
that buildpack uses --pure-lockfile -
https://github.com/heroku/heroku-buildpack-nodejs/blob/c883f50251537f0e4cccd95749c79dd044a4357f/lib/dependencies.sh#L67
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3485 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACBdWHQv495IGvwoZd3YbeK-ZVSPx89dks5sAF9OgaJpZM4NkLLh>
.
|
A related ticket with steps to reproduce the issue: #3506 |
I don't know if this is the right place to put this, but since updating to the latest yarn, every time I run yarn in my project's folder, which uses nvm, I have to rebuild node-sass with npm because the bindings are to my system's version of node instead of the nvm installed version my project uses. |
* Update ember-cli-showdown to ^3.2.1 Eliminates build-time warning of the form "Warning: ignoring input sourcemap for vendor/showdown.js because ENOENT: no such file or directory, open '[snip]/ember-freestyle/tmp/source_map_concat-input_base_path-[random].tmp/vendor/showdown.js.map' * Lock yarn version on CI to 0.23.4 Avoids a node-sass issue with later 0.23.x versions yarnpkg/yarn#3485
There's no need to reinstall packages in the before_deploy section of the Travis build, and that second call is causing a build error due to some weirdness between Travis+node-sass+yarn+yarn cache, as described in sass/node-sass#1579 and yarnpkg/yarn#3485.
Ok guys, this problem bothered me for the last few days so I did some digging. Here's what I found:
Also, I assume there's something that checks every file whether exists in the yarn cache and puts files into the If it's not an option to use the |
Yarn should record the files int .yarn-integrity file, something is getting lost over there I suppose. |
As @destroyerofbuilds described in https://github.com/destroyerofbuilds/yarn-sass, the issue was that |
Merging this issue into #3506 |
I wasn't using --pure-lockfile to install anything when Yarn broke my node-sass bindings. Should I open a separate issue? |
@selfagency this is another issue. |
@bestander has merged in #3704 to resolve this issue. Using the nightly 0.27 build (0.27.0-20170623.1327), which contains the fix, I no longer get the missing file error ( Thank you @bestander |
The original issue I filed wasn't related to #3506 - I get this issue despite using none of Can you de-merge this from that and re-open this? |
@jiaweihli to avoid confusion would you please open an issue with repro steps? |
with latest
adding latest node-gyp
initial node-sass install is OK
as is upgrade, tho it takes quite awhile 'Rebuilding all packages',
I haven't yet been able to cause another similar node-sass related fail ... so far (fingers crossed) |
"npm rebuild node-sass" was a way around for now. |
I also got around it with "yarn upgrade node-sass" which built it and then didn't later delete it. |
See angular/angular-cli#7113. Additionally, remove no longer needed fix to yarn issue (yarnpkg/yarn#3485).
@jontelm Thanks a lot, after messing around for 3 hours your suggestion worked for me. |
This is to get around a [yarn bug][1] which deletes breaks node-sass during the install process. [1]: yarnpkg/yarn#3485
* Port prototype Copied from https://github.com/ministryofjustice/opg-sirius-users-prototype/ * Add root-level Procfile for Heroku * Add route package.json Heroku requires there to be a package.json in the root directory * Use yarn instead of NPM * Rebuild node-sass after install This is to get around a [yarn bug][1] which deletes breaks node-sass during the install process. [1]: yarnpkg/yarn#3485 * Remove .env file * Remove docs This is just a local duplicate of [the documentation online][1] [1]: https://govuk-prototype-kit.herokuapp.com/docs/
What is the current behavior?
node-sass
, and other libraries with build artifacts, occasionally fail at runtime when installed with yarn. The workaround is to runnpm rebuild node-sass
after doing a yarn update.If the current behavior is a bug, please provide the steps to reproduce.
Quoting a post on the same issue from 0.17.0:
What is the expected behavior?
node-sass
shouldn't need to be rebuilt vianpm rebuild
after an install/update.npm
doesn't require a rebuild when installing it.Please mention your node.js, yarn and operating system version.
node 6.10.2
yarn 0.24.5
mac 10.12.5
Closing notes
This was tackled in 0.24.0 via #3224, but there looks to be outstanding issues.
This also affects other libraries - any library with artifacts - including karma-phantomjs-launcher.
The text was updated successfully, but these errors were encountered: