Answer the question
In order to leave comments, you need to log in
NODE JS libraries not downloading in Termux?
I am a developer of several bots for the Discord gaming network, I use different hosting, but when writing a new bot, I decided not to pay for hosting and make a kind of bot hosting out of the already installed Termux, transferred the bot files to my phone, and when I install the necessary resources, I get permission
errors These errors are:
npm install discord.js
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github .com/request/request/issues/3142
npm WARN deprecated [email protected]: This project is unmaintained. See @discordjs/opus for an alternative.
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../@discordjs/node-pre-gyp/bin/node-pre-gyp
npm ERR! dest /storage/emulated/0/code/AnTeZiT/node_modules/.bin/node-pre-gyp
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../@discordjs/node-pre-gyp/bin/node-pre-gyp' -> '/storage/emulated/0/code/AnTeZiT/node_modules/.bin/node -pre-gyp'
npm ERR! [Error: EPERM: operation not permitted, symlink '../@discordjs/node-pre-gyp/bin/node-pre-gyp' -> '/storage/emulated/0/code/AnTeZiT/node_modules/.bin/ node-pre-gyp'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../@discordjs/node-pre-gyp/bin/node-pre-gyp',
npm ERR! dest: '
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /data/data/com.termux/files/home/.npm/_logs/2021-04-05T06_43_57_155Z-debug.log
Answer the question
In order to leave comments, you need to log in
It is clearly written to run the terminal with administrator rights. Or give permission to write to this directory.
Some libraries cannot be downloaded on Android, but I can download them for you. If you want you can contact me: Jamsson#0001 . Or just transfer the libraries from your PC to your phone after downloading.
If you can’t even download discord.js to your phone, then most likely you didn’t grant rights for Termux to manage memory
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question