Bower installation: Error: EISDIR: illegal directory operation, reading

I had to upgrade node.js to v4 + (now at 4.1.0) and now I have problems with Bower (1.5.2). I am not 100% sure that the problem started immediately after updating node.js. In all my angular / ionic projects, I get "Error: EISDIR: illegal directory operation, reading" when releasing the "bell setup". This is stacktrace:

Error: EISDIR: illegal operation on a directory, read
    at Error (native)
    at Object.fs.readSync (fs.js:603:19)
    at Object.fs.readSync (C:\Users\mvrm\AppData\Roaming\npm\node_modules\bower\node_modules\bower-config\node_modules\graceful-fs\polyfills.js:218:23)
    at Object.fs.readFileSync (fs.js:438:24)
    at C:\Users\mvrm\AppData\Roaming\npm\node_modules\bower\node_modules\bower-config\lib\util\rc.js:75:27
    at Array.forEach (native)
    at json (C:\Users\mvrm\AppData\Roaming\npm\node_modules\bower\node_modules\bower-config\lib\util\rc.js:74:14)
    at rc (C:\Users\mvrm\AppData\Roaming\npm\node_modules\bower\node_modules\bower-config\lib\util\rc.js:31:9)
    at Config.load (C:\Users\mvrm\AppData\Roaming\npm\node_modules\bower\node_modules\bower-config\lib\Config.js:14:20)
    at Function.Config.read (C:\Users\mvrm\AppData\Roaming\npm\node_modules\bower\node_modules\bower-config\lib\Config.js:49:19)

On another computer with an older version of the gazebo (1.3.2) there are no elegant fs and no problems.

I found a few posts on this issue, but solutions for me do not work.

As far as I understand the messages well, the problem is that the code is trying to read the directory as a file.

, ? (, polyfills.js?) .

!

+3
2

bower js . , ".bowerrc" ( "C: \.bowerrc" ). . !

0

.npmrc, c: /users/your username/.npmrc.

0

Source: https://habr.com/ru/post/1608619/


All Articles