GithubHelp home page GithubHelp logo

Comments (2)

loicteixeira avatar loicteixeira commented on July 21, 2024

I ran into the same issue running netlify deploy.

Deploying folder: /app/var/build
{ Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:675:18)
    at tryReadSync (fs.js:540:20)
    at Object.fs.readFileSync (fs.js:583:19)
    at readLocalConfig (/app/node_modules/netlify-cli/lib/settings/config.js:19:2)
    at Config.writeLocalConfig (/app/node_modules/netlify-cli/lib/settings/config.js:72:15)
    at /app/node_modules/netlify-cli/lib/commands/deploy.js:116:16
    at tryCatchReject (/app/node_modules/when/lib/makePromise.js:845:30)
    at runContinuation1 (/app/node_modules/when/lib/makePromise.js:804:4)
    at Fulfilled.when (/app/node_modules/when/lib/makePromise.js:592:4)
    at Pending.run (/app/node_modules/when/lib/makePromise.js:483:13) errno: -21, code: 'EISDIR', syscall: 'read' }
Error during deploy:  EISDIR: illegal operation on a directory, read

I believe it is because netlify first saves the global config at ~/.netlify/config (so ~/.netlify/ is a directory) and then try to save the local config at ~/.netlify (as a file). Unfortunately, as you can see the paths are currently hardcoded so there's not much we can do unless the package is updated to make sure the paths don't clash or, the user can supply custom config paths

from cli.

bcomnes avatar bcomnes commented on July 21, 2024

This should be addressed in the upcoming 2.0.0 release.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.