D
D
Danil Shitov2018-08-31 08:40:54
JavaScript
Danil Shitov, 2018-08-31 08:40:54

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

Please tell me how to fix this, the fact is that I am now in the army and I can only write code from my smartphone.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Varakosov, 2018-08-31
@thelongrunsmoke

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.

S
Stalker_RED, 2018-08-31
@Stalker_RED

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 question

Ask a Question

731 491 924 answers to any question