Answer the question
In order to leave comments, you need to log in
When trying to install any modules using npm install, it gives a number of errors, how to fix it?
I downloaded dory - node.js on my android, oddly enough node.js works fine, I just ran into a problem that when I try to install any modules using npm install, it gives a number of errors.
For example: I write npm install sync, and it gives errors:
npm ERR!path npm-debug.log.743338944
npm ERR!code EROFS
npm ERR!errno -30
npm ERR!syscall open
npm ERR!rofs EROFS: read-only file system, open 'npm-debug.log.743338944'
npm ERR!rofs This is most likely not a problem with npm itself
npm ERR!rofs and is related to the file system being read-only.
npm ERR!rofs
npm ERR!rofs Often virtualized file systems, or other file systems
npm ERR!rofs that don't support symlinks, give this error.
npm ERR!Please include the following file with any support request:
npm ERR!/npm-debug.log
Answer the question
In order to leave comments, you need to log in
In android, a significant part of the file system is mounted read-only, you need to change the location where the packages are stored . For example, on /mnt/sdcard/npm
.
At least one of the errors is easy to understand:
You are trying to write somewhere where writing is prohibited. Details in the log npm-debug.log.743338944
And the first error is some kind of jamb with paths. And also indicated where to look.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question