所以,我一直在尝试从 Meta 的 github 安装 memlab 库。当我在没有 -g 的情况下安装时,它安装成功,但我没有使用 memlab 命令,我一直收到 memlab 命令未找到的错误。
每次跑步时:
npm install -g memlab
我收到错误列表:
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/memlab
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/memlab'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/memlab'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/memlab'
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 install -g memlab root/Administrator
我得到:
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/root/Administrator.git
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! A complete log of this run can be found in: /Users/harshit4.dubey/.npm/_logs/2023-10-17T19_05_42_796Z-debug-0.log```
I've been trying to get rid of this error, but I couldn't get any solution
显然memlab不提供对nodejs版本> 16的支持。