Notification texts go here Contact Us Buy Now!

Cannot set property closed of #<Readable> which has only a getter

I had a similar issue with vueJs, npm upgrade was able to fix it

I faced the same issue. Installing [memfs][1] solved the problem for me.
Try: npm install memfs

I was faced also this issue. I just tried npm install memfs and problem was solved.

In your case, the problem, as stated in the error message, is with the package memfs and as presented by @Sachin and @Suvin, installing a more recent version of it will solve the problem:

TypeError: Cannot set property closed of #<Readable> which has only a getter
    at FsReadStream.close (...\node_modules\memfs\...)

I had a similar issue and in my case, it was with another package named restify, nevertheless, the solution was the same: update the package.

Mozila: TypeError: setting getter-only property "x"

Restify Issue Ticket (solved)

It's not a good thing to do, but you can manually upgrade the memfs package in your package.json as a last solution

I was experiencing "TypeError: Cannot set property closed of # which has only a getter"

After that I have installed memfs and the problem is solved.

Try : npm install memfs

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.