我正在尝试在连接到 Ubuntu 操作系统的外部 SSD 上安装 Node.js 软件包。但是,我在安装过程中遇到错误。以下是详细信息:
操作系统:Ubuntu 22.04.2 LTS
SSD 文件系统:exFAT
错误信息:
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../esbuild/bin/esbuild
npm ERR! dest /media/pravin/Samsung_T5/Frontend-practice/manage-landing page/node_modules/.bin/esbuild
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../esbuild/bin/esbuild' ->
'/media/pravin/Samsung_T5/Frontend-practice/manage-landing-
page/node_modules/.bin/esbuild'
npm ERR! [Error: EPERM: operation not permitted, symlink '../esbuild/bin/esbuild' ->
'/media/pravin/Samsung_T5/Frontend-practice/manage-landing page/node_modules/.bin/esbuild'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'symlink',
npm ERR! path: '../esbuild/bin/esbuild',
npm ERR! dest: '/media/pravin/Samsung_T5/Frontend-practice/manage-landing-page/node_modules/.bin/esbuild'
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 安装软件包,但在目标目录 /media/pravin/Samsung_T5/Frontend-practice/manage-landing-page/node_modules/.bin/esbuild 中创建指向 ../esbuild/bin/esbuild 的符号链接时似乎失败。
我检查了文件及其包含目录的权限,它们似乎是 drwxr-xr-x。我尝试使用 chmod g+w manage-landing-page 更改权限,但没有成功。
为了在外部 SSD 上成功安装这些软件包,我应该检查什么具体内容或采取任何其他步骤吗?