Comments (2)
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.
This should be addressed in the upcoming 2.0.0 release.
from cli.
Related Issues (20)
- I really don't know HOT 6
- Incorrect import of read-package-up HOT 3
- Warning: Error: Netlify CLI has terminated unexpectedly when used axios
- Increased Netlify Function timeouts not respected by `netlify dev`
- Netlify env branch/context needs to be case sensitive HOT 1
- Invalid character in header content ["Content-Security-Policy"]
- Netlify dev fails to acquire port. crashes after init.
- Latest version of cli is pulling in insecure packages that have available patches HOT 4
- deploy and build have different behaviours when run sequentially and as one command
- Command functions:serve - Canβt setup custom path for functions HOT 2
- Nuxt 3, dist folder not created with github actions.
- V17.23.1 Netlify CLI has terminated unexpectedly
- Invalid Typescript functions URL HOT 1
- CONTRIBUTING.md link in Pull Request Checklist is invalid
- Can anyone of you please explain me why this error is showing?
- switching branches causes crash
- Running netlify dev causes esm loader error
- CLI crash on loading of website HOT 1
- (dev) Deno crashes with PermissionDenied: Requires sys access to "cpus", run again with the --allow-sys flag HOT 1
- Please replace with a clear and descriptive title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.