This error is simple,
cd /tmp
mkdir dir
node -e "var fs = require('fs'); fs.createReadStream( 'dir' );"
EISDIR means that the target of the operation is a directory in reality but that the expected filetype of the target is something other than a directory.
More Related Contents:
- can i use symfony nodeJS and angular in one application [closed]
- Check synchronously if file/directory exists in Node.js
- How to access the GET parameters after “?” in Express?
- How can I make multiple projects share node_modules directory?
- Node.js: printing to console without a trailing newline?
- Angular 6 many Can’t resolve errors (crypto, fs, http, https, net, path, stream, tls, zlib)
- Node.js Hostname/IP doesn’t match certificate’s altnames
- Authenticating socket io connections using JWT
- How to reuse redis connection in socket.io?
- npm install won’t install devDependencies
- Using nodejs’s spawn causes “unknown option — ” and “[Error: spawn ENOENT]” errors
- How to protect the password field in Mongoose/MongoDB so it won’t return in a query when I populate collections?
- Using MemoryStore in production
- Mongoose, find, return specific properties
- Using PassportJS, how does one pass additional form fields to the local authentication strategy?
- Laravel 5.4 ‘cross-env’ Is Not Recognized as an Internal or External Command
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- Use multiple local strategies in PassportJS
- nginx proxy pass Node, SSL?
- When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
- Module not found: Can’t resolve ‘fs’ in Next.js application
- What does -save-dev mean in npm install grunt –save-dev
- How to host a Node.Js application in shared hosting [closed]
- Return value in function from a promise block
- Observe file changes with node.js
- How can I get Express.js to 404 only on missing routes?
- Firebase realtime database transaction handler gets called twice most of the time
- nodejs connect error: “has no method ‘static'”
- CORS-enabled server not denying requests
- Create unique autoincrement field with mongoose [duplicate]