termux / termux.github.io

The main termux site and help pages.
https://termux.github.io
883 stars 173 forks source link

npm install fails if installing in device storage #35

Closed muggy8 closed 6 years ago

muggy8 commented 6 years ago

So I granted termux permission for storage under settings and it is now able to see my devices "sdcard" folder (below)

termux-settings

but when i'm working from the device folder (which i do because trying to navigate to some obscure folder that termux calls home is quite annoying every time i want to start working on my script and a root text editor is hard to come by) and try to do npm install, node kicks in and then does the things it's supposed to do and then it throws a permission denied error and is not allowed to write to device storage. I'm not quite sure why this is but here's the output that hopefully will be helpful in pinpointing the issue

npm-install-error

Thanks!!

Grimler91 commented 6 years ago

Android doesn't allow executables in the shared internal storage/sdcard. There's nothing we can do about this.