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

no such file or directory .svgo.yml #622

Closed
bonesoul opened this issue Nov 10, 2016 · 31 comments
Closed

no such file or directory .svgo.yml #622

bonesoul opened this issue Nov 10, 2016 · 31 comments

Comments

@bonesoul
Copy link

bonesoul commented Nov 10, 2016

Warning: Error: ENOENT: no such file or directory, open 'F:\Source\node_modules\svgo.svgo.yml'

getting the error when installed with yarn package manager.

@GreLI
Copy link
Member

GreLI commented Nov 12, 2016

svgo/lib/svgo/config.js reeds ${__dirname}/../../.svgo.yml, so the target file should be svgo/.svgo.yml. It seems like something went wrong.

@chrisvfritz
Copy link

chrisvfritz commented Nov 16, 2016

I noticed this problem with Yarn after someone had run yarn clean. Deleting the .yarnclean file, deleting node_modules, then re-running yarn fixed it.

@pcwa-ahendricks
Copy link

Confirming @chrisvfritz fix. Thanks.

@GreLI GreLI closed this as completed Nov 20, 2016
@aap82
Copy link

aap82 commented Dec 5, 2016

@chrisvfritz confirming as well. thank you kindly.

@teonik
Copy link

teonik commented Dec 29, 2016

@chrisvfritz Confirmed! I faced this issue unexpectedly when trying to use css-loader with webpack....

@valotvince
Copy link

@chrisvfritz Thanks !

@brandondurham
Copy link

For whatever reason this fix doesn’t work for me.

@damassi
Copy link

damassi commented Feb 8, 2017

Is there a way that we can make this library more compatible with Yarn so that this fix is not needed?

@zrrtcs
Copy link

zrrtcs commented Feb 24, 2017

There's an open issue regarding *.yml files in .yarnclean at yarnpkg/yarn#2276

@khzaw
Copy link

khzaw commented Mar 4, 2017

@chrisvfritz Worked for me, too. Thanks!

@matthieusb
Copy link

Thanks for the fix @chrisvfritz ! Just saved me a lot of trouble.

@pearman
Copy link

pearman commented Mar 23, 2017

Thanks @chrisvfritz and @zrrtcs. Removing *.yml and .*.yml (and any other entries that should not be deleted) from my .yarnclean file fixed my issues.

@bytedaring
Copy link

@chrisvfritz Thanks!

@jochemjanssens
Copy link

@chrisvfritz Thanks!

@tommueller
Copy link

@chrisvfritz Thanks!

1 similar comment
@LaravelMonster
Copy link

@chrisvfritz Thanks!

@jasonmerry
Copy link

Thanks :)

@lili21
Copy link

lili21 commented Apr 25, 2017

Thanks , saved my life.

@soulomoon
Copy link

@chrisvfritz Thank you!

@LinusBorg
Copy link

@chrisvfritz Thanks! ;)

@joneslloyd
Copy link

@chrisvfritz Cheers!

@Cecilxx
Copy link

Cecilxx commented May 25, 2017

@chrisvfritz thanks

@dcifuen
Copy link

dcifuen commented May 26, 2017

Instead of deleting the whole .yarclean file or removing the lines *.yml and .*.yml, you can add a new line in your .yarclean to ignore this specific file: !svgo/.svgo.yml

@brandondurham
Copy link

@dcifuen Worked like a charm. Thanks!

@junen0511
Copy link

@chrisvfritz Thanks!

@disarticulate
Copy link

still doin whatever it's doin. Fix above worked.

@jeantimex
Copy link

@chrisvfritz Thanks a lot!

@chrisvfritz
Copy link

chrisvfritz commented Jul 14, 2017

@pcwa-ahendricks @aap82 @teonik @valotvince @khzaw @matthieusb @pearman @bytedaring @jochemjanssens @tommueller @LaravelMonster @soulomoon @LinusBorg @joneslloyd @Cecilxx @brandondurham @junen0511 @disarticulate @jeantimex

Don't thank me. Thank git diff HEAD^.

Batman Grapple Away

But seriously, please just add a reaction. 😅 I've unsubscribed from this thread so many times, but every mention subscribes me again.

@crisu83
Copy link

crisu83 commented Jan 9, 2018

@dcifuen your solution worked perfectly, thanks! 👍

@ownmaster
Copy link

Sometimes svgo can be referenced by other installed modules, in such case you need to change @dcifuen suggestion to !.svgo.yml - it will ignore .svgo.yml in all subfolders.

@mmikhan
Copy link

mmikhan commented Feb 2, 2020

I'm trying to use the SVGO with the https://github.com/nklayman/vue-cli-plugin-electron-builder and experiencing the /electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/../../.svgo.yml issue. I can confirm that I don't have a .yarnclean file, nor yarn is cleaning anything as I verified it by manually checking the /node_modules/svgo/svgo.yml file and it's there. Anyone got any idea?

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