因此,我正在尝试termux。
我打开termux,导航到程序文件夹,然后安装npm。这是输出:
$ npm install
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! dest /storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser'
npm ERR! [Error: EPERM: operation not permitted, symlink '../@babel/parser/bin/babel-parser.js' -> '/storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../@babel/parser/bin/babel-parser.js',
npm ERR! dest: '/storage/emulated/0/lightBag_ExpoVersion2/node_modules/.bin/parser'
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-03-20T09_47_18_096Z-debug.log
发布于 2021-03-21 00:16:06
我想是npm install --no-bin-link
发布于 2021-04-23 08:35:26
您不能在内部存储中创建符号链接。您有三个选项:1使用--no-bin-link选项。它在大多数情况下都是有效的。2将您的项目移动到termux data文件夹。在这里,termux有更多的权限,如symlink,chmod等3根你的手机,并给予termux超级用户权限。但这将是一个完全的杀伤力。我不推荐这样做。
发布于 2021-03-20 17:59:05
您可能有权限打开终端并尝试此命令
sudo npm install -g eslint
https://stackoverflow.com/questions/66720214
复制相似问题