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

ENOENT: no such file or directory, open 'project/node_modules/svgo/lib/svgo/../../.svgo.yml' #73

Closed
jonniespratley opened this issue Mar 23, 2017 · 3 comments
Labels

Comments

@jonniespratley
Copy link

Here is the output:

[09:53:13] Using gulpfile ~/Github/vault-dashboard/gulpfile.js
[09:53:13] Starting 'images'...
Unhandled rejection Error: ENOENT: no such file or directory, open '/Users/212400520/Github/vault-dashboard/node_modules/svgo/lib/svgo/../../.svgo.yml'
    at Object.fs.openSync (fs.js:558:18)
    at Object.fs.readFileSync (fs.js:468:33)
    at module.exports (/Users/212400520/Github/vault-dashboard/node_modules/svgo/lib/svgo/config.js:31:48)
    at new module.exports (/Users/212400520/Github/vault-dashboard/node_modules/svgo/lib/svgo.js:21:19)
    at buf (/Users/212400520/Github/vault-dashboard/node_modules/imagemin-svgo/index.js:16:15)
    at /Users/212400520/Github/vault-dashboard/node_modules/promise.pipe/index.js:25:18
    at process._tickCallback (internal/process/next_tick.js:103:7)

Any thoughts on why this is happening?

@rpoitras
Copy link

rpoitras commented Apr 1, 2017

I had the same error with an angular cli project that I'm using yarn for dependency management. The problem for me was caused by running a yarn clean. This issue 662 on svgo suggested deleting the .yarnclean file. Fixed my problem. Maybe you've had something similar with a gulp clean command.

@smarterdigitalltd
Copy link

@rpoitras this worked for me with this exact issue - thanks!

@ben-eb
Copy link
Owner

ben-eb commented May 16, 2017

@rpoitras Nice work, thanks for suggesting that fix. 👍

@ben-eb ben-eb closed this as completed May 16, 2017
OysteinAmundsen added a commit to OysteinAmundsen/gymsystems that referenced this issue Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants