Eisdir Illegal Operation on a Directory Read at Error Metro-bundler

NPM stuck giving the aforementioned error EISDIR: Illegal functioning on a directory, read at mistake (native)

  • Domicile
  • Question
  • NPM stuck giving the same error EISDIR: Illegal operation on a directory, read at error (native)

I am stuck with this error no thing what directory I am in, and what I type after "npm" in cmd.exe. Here is the npm-debug.log:

              0 info it worked if it ends with ok ane verbose cli [ 'C:\\Programme Files\\nodejs\\node.exe', one verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js' ] ii info using [email protected] 3 info using [email protected] 4 verbose stack Fault: EISDIR: illegal functioning on a directory, read 4 verbose stack     at Error (native) v verbose cwd C:\Users\me 6 error Windows_NT vi.1.7601 7 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" 8 fault node v4.2.6 9 error npm  v2.xiv.12 x mistake lawmaking EISDIR 11 error errno -4068 12 error syscall read 13 error eisdir EISDIR: illegal operation on a directory, read thirteen error eisdir This is nigh likely not a problem with npm itself 13 error eisdir and is related to npm not being able to observe a package.json in 13 error eisdir a package yous are trying to install. xiv verbose exit [ -4068, truthful ]                          

I take tried and uninstalling/reinstalling nodejs multiple times, I even deleted npm and npm-cache folders in C:\Users\me\AppData\Roaming. I'grand not sure what went incorrect to cause this. One 2d it was working fine, and now I can't get rid of this error. The explanation in the log does not make sense, as it gives this error in whatsoever directory. I should annotation that running a command prompt every bit administrator does not requite this error. I'chiliad pulling my hair out this Friday evening trying to get this fixed, whatever help would be greatly appreciated!

This question is tagged with node.js windows cmd npm file-permissions

~ Asked on 2016-01-23 02:43:37

32 Answers


I ran into the same trouble while I was changing some npm settings. I did a mistake with one npm config set command and this added a line referring to a non-existing directory to C:\Users\{User}\.npmrc. Later on I deleted that line manually from .npmrc, the problem was gone.

~ Answered on 2016-02-16 10:04:37


EISDIR stands for "Fault, Is Directory". This ways that NPM is trying to do something to a file but it is a directory. In your case, NPM is trying to "read" a file which is a directory (Line: 4). Since the operation cannot be done the error is thrown.

Three things to make sure here.

  1. Make certain the file exists. If information technology does not, you demand to create it. (If NPM depends on whatever specific information in the file, you lot volition need to have that information at that place).
  2. Make sure it is in fact a file and not a directory.
  3. It has the right permissions. Yous tin change the file to have all permissions with "sudo chmod 777 FILE_NAME". (Careful: You are giving Read, Write and Execute permissions to every one on that file)

~ Answered on 2017-03-08 16:55:55


Had the same problem today afterwards i've upgraded my npm from version half dozen.4.i to version 6.5.0. I fixed this past downloading the .pkg installer (recommended for nearly users) from node.js and runned it afterwards.

~ Answered on 2018-12-28 10:53:17


In my case I was getting the "EISDIR: illegal functioning on a directory, read" because in my .athwart-cli.json file I wasn't providing a full path in "scripts:"

For example I had

              "scripts": [         "../node_modules/hammerjs",         "../node_modules/moment"       ],                          

In fact it should have been

              "scripts": [         "../node_modules/hammerjs/hammer.min.js",         "../node_modules/moment/min/moment.min.js"       ],                          

~ Answered on 2018-01-19 09:07:01


I had the same issue on Mac OS X (installed with homebrew), and the .npmrc is not the but place node stored config variables. There is a glocal npmrc config file in /usr/local/etc that you have to edit using this command:

              sudo nano npmrc                          

Remove the ca= line, or whatever the config setting was that broke your install, relieve that file, and try npm again, and you should see information technology working.

~ Answered on 2016-07-27 17:54:25


These foreign errors occured recently on my OSX machine.

I could help myself the quick & dirty manner past running:

sudo chmod -R 777 /usr/local/lib/node_modules/

Something seemed to have messed upwards the admission rights of all global node modules.

~ Answered on 2019-01-14 14:12:29


For me fixing was add slash after directory name

~ Answered on 2018-06-20 20:10:34


If your trouble is associated with the React Native packager. Endeavor resetting the cache with react-native first --reset-enshroud.

~ Answered on 2018-02-12 nineteen:05:23


Make certain node_modules (and your root bundle.json) doesn't incorporate a reference to npm's "packet.json" module. Deleting package.json FOLDER from node_modules solved the effect for me.

~ Answered on 2019-10-01 06:xx:l


Bank check to ensure you are running npm install from the proper directory.

(The package.json file could exist i extra directory down, for case.)

~ Answered on 2016-12-20 12:36:04


I had this upshot with gulp. The trouble was that gulp added a dependency to my source file and I recollect npm tried to open up it:

              {   "name": "name",   "version": "2.0.0",   "description": "",   "main": "gulpfile.js",   "scripts": {     "test": "echo \"Error: no test specified\" && exit ane"   },   "author": "",   "license": "ISC",   "devDependencies": {     "appname": "file://gulp",     "gulp-concat": "^2.six.one",     "gulp-electron": "^0.1.3",     "gulp-beat": "^0.5.2",     "gulp-uglify": "^two.0.0",     "gulp-util": "^three.0.vii",     "node-7z": "^0.4.0"   } }                          

Make certain that at that place are no strange references in y'all package.json file.

~ Answered on 2016-11-25 12:08:22


~ Answered on 2016-01-25 19:34:15


Had the same problem until I tried deleting the .git binder. It worked. I guess this type of problem tin have unlike causes.

~ Answered on 2018-01-19 21:39:28


In my case, i was facing this issue while installing create-react-app in MAC (Mojave Bone) with following command :

              sudo npm install create-react-app -g                          

and got errors like this :

              npm WARN tar EISDIR: illegal functioning on a directory, open up '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/src/scheduler' npm WARN tar EISDIR: illegal operation on a directory, open up '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/src/symbol' npm WARN tar EISDIR: illegal performance on a directory, open '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/src/testing' npm WARN tar EISDIR: illegal functioning on a directory, open '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/src/util' npm WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/src/webSocket' npm WARN tar EISDIR: illegal performance on a directory, open '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/symbol' npm WARN tar EISDIR: illegal performance on a directory, open '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/testing' npm WARN tar EISDIR: illegal operation on a directory, open '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/util' npm WARN tar EISDIR: illegal functioning on a directory, open up '/usr/local/lib/node_modules/.staging/rxjs-a84420a7/webSocket'                          

I accept read npm.community that try to install without sudo :

              npm install create-react-app -yard                          

and it really solved my issue ..!!

~ Answered on 2019-04-23 09:12:31


In my case I forgot to pass the total path of ane of the file information technology was asking. After passing full path of the file worked :)

~ Answered on 2019-04-16 21:51:55


I fixed this consequence past moving my directory from my exFAT bulldoze which does not support symlinking.

My exFat drive is shared between osx and a bootcamp windows sectionalization then when I tried to clone and npm install my project it was failing but never explains that exFAT doesn't support this functionality.

There are drivers out there that you tin install to add the ability to symlink but you'll have to do a lot of your setup manually compared to running a simple npm script.

~ Answered on 2020-02-05 21:25:56


In my example, the C:\Users\{user}\AppData\local\npm files were subconscious, so I was not able to discover & delete the problem directory. Took me DAYS to realize this!

So double check to un-hibernate any folders then yous don't miss them! Here'southward a link to do this if you don't know how.

~ Answered on 2020-06-29 21:23:52


This happened to me on npm publish --admission public command. Project contained directory named package.json. This mistake is pitiful - because projection HAS to have this directory and named exactly package.json (it was part of test instance fixture to assert correct behavior of this lib).

~ Answered on 2021-01-14 19:06:42


I had faced similar issue. I set cafile using the command:

              npm config set cafile PATH_TO_CERTIFICATE                          

I was able to resolve this by deleting the document file settings, and setting strict-ssl = false.

~ Answered on 2020-01-25 12:46:55


In my instance, I am working on angularv10 with cloth. I had inverse some script files and forgot to remove these empty "" in the scripts array

scripts: [.....bla, bla, etc, ""]

remove these empty""

npm clear-cache --force

close and open vscode

It worked.

~ Answered on 2021-01-07 05:27:26


In my example issue was that space graphic symbol was in the proper noun of the source folder (Windows 10).

~ Answered on 2020-10-06 22:xxx:55


On Mac:

Per-user config file: ~/.npmrc

~ Answered on 2020-10-01 14:34:05


In my case these steps solved my problem:

  1. terminating npm process (CTRL + C)
  2. deleting entire folder
  3. creating new one
  4. running npm again

~ Answered on 2019-05-29 07:43:05


Make sure to check your version of npm and whether or not there are issues with it. I was having the aforementioned issue at the time of this post and I discovered that my npm version (6.five) was having issues. I had to uninstall and reinstall npm version 6.4.1 and then everything started to work slap-up once more.

~ Answered on 2019-01-24 21:24:49


In my case, I'one thousand using Windows 10 in Spanish and this version mixes English and Spanish directory names. My problem was that the desktop directory has this name for some commands and escritorio to others. I believe that npm cannot resolve this. My solution was to simply modify to another directory starting from C:\ dissimilar to my dwelling house directory.

~ Answered on 2019-12-05 15:51:10


For mac os: If installed straight from nodejs website the npmrc file would be located in /usr/local/etc/npmrc. Just delete the config which is undefined and this problem would be fixed.

~ Answered on 2020-03-06 23:46:28


I had the aforementioned upshot. There was a linked binder in my directory which was causing the issue. i added that folder to ignore listing then it started working fine as expected.

~ Answered on 2018-05-31 16:27:09


Just delete .npmrc folder in c:users>'username' and try running the control it will be resolved !

~ Answered on 2020-11-23 09:17:12


I know this isn't specifically request almost forever js.. but google lead me here and so.. For me it was equally simple every bit an ending slash.

I just inverse:

              forever start -a -50 /dev/null/ /var/www/node/my_file.js                          

To:

              forever kickoff -a -l /dev/cypher /var/www/node/my_file.js                          

And the mistake disappeared

~ Answered on 2018-06-01 22:35:48


I had a broken symlink to node_modules in a subfolder

~ Answered on 2019-04-10 08:32:25


I had a like problem while setting upwards average code. It was reading my bundle.js file as a directory. And so as stated here. EISDIR mean its a directory and not a file. To set the issue, I deleted the file and just recreated (information technology was originally created automatically). If you cannot find the file (because its hidden), simply utilise the terminal to notice and delete it.

~ Answered on 2017-06-01 22:01:47


I just removed the line

              .babel('resources/assets/js/app.js')                          

for laravel v.half dozen with vue.js. in webpack.mix.js

~ Answered on 2020-05-twenty 07:12:14


Most Viewed Questions:

  • Convert float to cord with precision & number of decimal digits specified?
  • How to make a Div appear on elevation of everything else on the screen?
  • How to check if a column exists in Pandas
  • What exactly is the difference betwixt Spider web API and REST API in MVC?
  • Swift programmatically navigate to another view controller/scene
  • Modify the Bootstrap Modal effect
  • How can I add together a book to an existing Docker container?
  • Sizing elements to percent of screen width/height
  • Adding integers to an int array
  • Convert list of dictionaries to a pandas DataFrame
  • sqlalchemy IS Not NULL select
  • Python class input statement
  • What is the max size of VARCHAR2 in PL/SQL and SQL?
  • How to modify indentation in Visual Studio Code?
  • Authentication plugin 'caching_sha2_password' is not supported
  • Gradle to execute Java class (without modifying build.gradle)
  • Build .Net Core console application to output an EXE
  • Bones Authentication Using JavaScript
  • Angular2 @Input to a property with get/set
  • How to change the status bar background colour and text color on iOS 7?
  • Brandish unescaped HTML in Vue.js
  • How to delete an element from a Slice in Golang
  • How do I use a delimiter with Scanner.useDelimiter in Java?
  • python - if non in list
  • Export multiple classes in ES6 modules
  • What is the difference between Visual Studio Express 2013 for Windows and Visual Studio Limited 2013 for Windows Desktop?
  • Restart pods when configmap updates in Kubernetes?
  • Pandas DataFrame: replace all values in a column, based on condition
  • Converting Pandas dataframe into Spark dataframe fault
  • How to know whether refresh button or browser back button is clicked in Firefox
  • keycloak Invalid parameter: redirect_uri
  • Can't find out where does a node.js app running and tin't kill it
  • Form 'ViewController' has no initializers in swift
  • How to vertically align label and input in Bootstrap 3?
  • Can I set state inside a useEffect hook
  • How to catechumen time milliseconds to hours, min, sec format in JavaScript?
  • Bound Kicking default H2 jdbc connection (and H2 console)
  • What is the divergence between --relieve and --save-dev?
  • Installing ADB on macOS
  • How to re-create folders to docker prototype from Dockerfile?
  • Clearfix with twitter bootstrap
  • SEVERE: ContainerBase.addChild: start:org.apache.catalina.LifecycleException: Failed to commencement error
  • How to notice NSDocumentDirectory in Swift?
  • Chrome hangs subsequently certain amount of information transfered - waiting for available socket
  • Upgrade version of Pandas
  • Remove all elements contained in another array
  • fatal mistake C1010 - "stdafx.h" in Visual Studio how can this be corrected?
  • How do I print the content of a .txt file in Python?
  • How can I ready WebStorm warning "Unresolved function or method" for "require" (Firefox Add-on SDK)
  • How do I become an object's unqualified (brusk) class proper name?
  • Using $window or $location to Redirect in AngularJS
  • PostgreSQL Example ... Cease with multiple conditions
  • Batch script to install MSI
  • Error:Crusade: unable to discover valid certification path to requested target
  • Creating a Facebook share button with customized url, title and paradigm
  • Divergence between Relative path and accented path in javascript
  • How to POST raw whole JSON in the trunk of a Retrofit request?
  • lodash: mapping assortment to object
  • how to set value of a input hidden field through javascript?
  • How to create a strange key in phpmyadmin
  • Xcode 9 fault: "iPhone has denied the launch request"
  • How to remove package using Athwart CLI?
  • How can I go session id in php and testify it?
  • npm install private github repositories past dependency in package.json
  • How to alter Oracle default data pump directory to import dumpfile?
  • what is the use of annotations @Id and @GeneratedValue(strategy = GenerationType.IDENTITY)? Why the generationtype is identity?
  • Detecting IE11 using CSS Adequacy/Characteristic Detection
  • How to query for Xml values and attributes from table in SQL Server?
  • Nested Recycler view height doesn't wrap its content
  • C++ Loop through Map
  • Artisan, creating tables in database
  • Uncaught ReferenceError: angular is not divers - AngularJS not working
  • Parse JSON String into List<string>
  • Test if string begins with a cord?
  • json parsing error syntax error unexpected end of input
  • cannot convert 'std::basic_string<char>' to 'const char*' for argument 'ane' to 'int arrangement(const char*)'
  • Maven:Non-resolvable parent POM and 'parent.relativePath' points at wrong local POM
  • How to change default install location for pip
  • How exercise I load an HTTP URL with App Transport Security enabled in iOS 9?
  • OSError: [Errno 2] No such file or directory while using python subprocess in Django
  • Chrome DevTools Devices does not observe device when plugged in
  • How exercise I disable a Button in Flutter?
  • What does ==$0 (double equals dollar zero) mean in Chrome Programmer Tools?
  • How to run docker-compose up -d at system start upwardly?
  • MySQL Workbench - Connect to a Localhost
  • Catechumen INT to VARCHAR SQL
  • Stock-still digits after decimal with f-strings
  • How to install mysql-connector via pip
  • Install Qt on Ubuntu
  • shell script. how to extract cord using regular expressions
  • How tin can I limit ngFor echo to some number of items in Angular?
  • Google maps Marker Label with multiple characters
  • How to specify multiple return types using type-hints
  • Visual Studio Code Search and Replace with Regular Expressions
  • Apache 2.4.half-dozen on Ubuntu Server: Client denied by server configuration (PHP FPM) [While loading PHP file]
  • How to add racket (Gaussian/salt and pepper etc) to image in Python with OpenCV
  • Is at that place a float input blazon in HTML5?
  • iOS9 getting fault "an SSL error has occurred and a secure connection to the server cannot be fabricated"
  • Decide the data types of a data frame's columns
  • Programmatically cheque Play Shop for app updates
  • How to run a command in the background on Windows?
  • Cannot connect to the Docker daemon on macOS
  • What is an "index out of range" exception, and how exercise I gear up it?
  • How to make google spreadsheet refresh itself every one minute?
  • How can moment.js be imported with typescript?
  • Why is this fault, 'Sequence contains no elements', happening?
  • The character encoding of the plain text certificate was not declared - mootool script
  • Angular HTML bounden
  • Ready the maximum graphic symbol length of a UITextField in Swift
  • How to use a typescript enum value in an Angular2 ngSwitch argument
  • Combine [NgStyle] With Condition (if..else)
  • Joining two table entities in Spring Information JPA
  • Regex pattern within SQL Replace function?
  • Fetch: POST json information
  • MySQL Wrong datetime value: '0000-00-00 00:00:00'
  • Python - Create list with numbers between two values?
  • ./20.py: line 1: import: command not found
  • mongodb how to become max value from collections
  • Programmatically navigate using react router V4
  • XCOPY: Overwrite all without prompt in BATCH
  • Java8: HashMap<Ten, Y> to HashMap<X, Z> using Stream / Map-Reduce / Collector
  • Update query with PDO and MySQL
  • What is the divergence between getText() and getAttribute() in Selenium WebDriver?
  • Cannot invoke an expression whose blazon lacks a call signature
  • javac: invalid target release: i.8
  • How to set the timezone in Django?
  • Java - Access is denied java.io.FileNotFoundException
  • How to notice index of STRING array in Java from a given value?
  • Edit and replay XHR chrome/firefox etc?
  • Git merge is not possible because I have unmerged files
  • How to finish Activeness when starting other action in Android?
  • Php header location redirect not working
  • Check if list is empty in C#
  • How to install VS2015 Community Edition offline
  • How to delete a folder with files using Coffee
  • How to iterate (keys, values) in JavaScript?
  • What is the difference between bone.path.basename() and os.path.dirname()?
  • Min and max value of input in angular4 application
  • How to brand utilise of ng-if , ng-else in angularJS
  • Upgrading PHP on CentOS 6.5 (Final)
  • How to disable gradle 'offline mode' in android studio?
  • Xcode ten, Command CodeSign failed with a nonzero get out code
  • Cannot load properties file from resources directory
  • How to catechumen 'false' to 0 and 'truthful' to ane in Python
  • Rewrite URL after redirecting 404 fault htaccess
  • Coffee: How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
  • Sending cord via socket (python)
  • Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
  • This declaration has no storage form or type specifier in C++
  • Iterating through map in template
  • Rename multiple files in a binder, add a prefix (Windows)
  • How to create a video from images with FFmpeg?
  • Pandas How to filter a Series
  • How to open the Chrome Programmer Tools in a new window?
  • Irresolute specific text's color using NSMutableAttributedString in Swift
  • Exposing the current land proper name with ui router
  • How to create a DataFrame of random integers with Pandas?
  • Iterating Through a Dictionary in Swift
  • Returning http 200 OK with error within response body
  • Query comparing dates in SQL
  • How tin can I list all tags for a Docker image on a remote registry?
  • How to remove specific substrings from a set up of strings in Python?
  • Visual Studio 2017 - Git failed with a fatal error
  • Git Extensions: Win32 error 487: Couldn't reserve space for cygwin's heap, Win32 mistake 0
  • "No cached version... available for offline style."
  • How do you perform wireless debugging in Xcode 9 with iOS 11, Apple Television set 4K, etc?
  • Error: Execution failed for task ':app:clean'. Unable to delete file
  • How do I plot list of tuples in Python?
  • Bear Flag, Auxiliary Flag and Overflow Flag in Assembly
  • Warning: mysqli_query() expects parameter 1 to be mysqli, null given in
  • Jersey stopped working with InjectionManagerFactory not found
  • Bootstrap iii Glyphicons CDN
  • Rails 4 - Strong Parameters - Nested Objects
  • Load data from txt with pandas
  • Tomcat 8 Maven Plugin for Coffee 8
  • Pandas: Render 60 minutes from Datetime Column Directly
  • Check if chemical element is visible in DOM
  • org.glassfish.jersey.servlet.ServletContainer ClassNotFoundException
  • No 'Access-Command-Permit-Origin' header is present on the requested resource—when trying to go data from a REST API
  • How to resolve the "EVP_DecryptFInal_ex: bad decrypt" during file decryption
  • How to delete projects in Intellij IDEA 14?
  • Datatable to html Table
  • Cannot modify version of projection facet Dynamic Spider web Module to three.0?
  • Postgresql query between date ranges
  • Error:java: invalid source release: 8 in Intellij. What does information technology mean?
  • rebase in progress. Cannot commit. How to proceed or stop (abort)?
  • HTML button onclick event
  • Target class controller does not exist - Laravel 8
  • Modify bar plot colour in geom_bar with ggplot2 in r
  • Hadoop MapReduce: Strange Result when Storing Previous Value in Memory in a Reduce Grade (Coffee)
  • Array from dictionary keys in swift
  • ln (Natural Log) in Python
  • How to print the contents of RDD?
  • Failed to discover Build Tools revision 23.0.i
  • Click a push programmatically
  • Pandas - Compute z-score for all columns
  • How can I exclude a directory from Visual Studio Lawmaking "Explore" tab?
  • D3.js: How to go the computed width and meridian for an capricious element?
  • Can you delete data from influxdb?
  • Getting reference to child component in parent component

shawthateg.blogspot.com

Source: https://syntaxfix.com/question/3872/npm-stuck-giving-the-same-error-eisdir-illegal-operation-on-a-directory-read-at-error-native

0 Response to "Eisdir Illegal Operation on a Directory Read at Error Metro-bundler"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel