Termux - npm ERR! Error: EPERM: operation not permitted, symlink

Viewed 212

Whenever I install a npm-package (like: Puppeteer, Nightmare, Playwright) I get the same error message;

But it isn't shown up when I install the npm-packages (axios, http, axios, etc.) almost all minor packages...!

npm install playwright:

npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../playwright/cli.js
npm ERR! dest /storage/emulated/0/Android/data/io.spck.editor.node/files/Alexa Kairen || Doruk/node_modules/.bin/playwright
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../playwright/cli.js' -> '/storage/emulated/0/Android/data/io.spck.editor.node/files/Alexa Kairen || Doruk/node_modules/.bin/playwright'
npm ERR!  [Error: EPERM: operation not permitted, symlink '../playwright/cli.js' -> '/storage/emulated/0/Android/data/io.spck.editor.node/files/Alexa Kairen || Doruk/node_modules/.bin/playwright'] {
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../playwright/cli.js',
npm ERR!   dest: '/storage/emulated/0/Android/data/io.spck.editor.node/files/Alexa Kairen || Doruk/node_modules/.bin/playwright'
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/2022-08-10T13_22_34_261Z-debug-0.log
1 Answers

Note: don't have my android set to English, so the settings could have a different translation.

  1. Hold the Termux app on your phone
  2. Click on App-info
  3. Rights or Permissions
  4. Click on the Files and media and grand the permission.
  5. try again
Related