Score:0

NPM install fail unless --no-bin-links is used. Why is that? Probably Ubuntu file permissions, still unsure

ca flag

There's a lot going on with this drive and I'm not sure where to start troubleshooting. I have a HDD which is partitioned to have 10GB of unallocated space. I formatted as FAT32 and mounted that space to /mnt/AB67-D2AC. The drive should have execute permissions based on a steam install on the drive (auto mount options off, mount on startup on). There is a windows install on a separate partition. I tried:

chmod -R 777 ./
chown -R me ./
sudo npm install

I know FAT32 doesn't have the normal ubuntu file permissions on it, is that the issue? Its unsupported by the format?

The problem occurred when using NPM, error below. Sudo npm install did not help.

I tried expanding the drive in gnome-disk-utility but that did not seem to be an option (only shrinking). npm install ouputs:

npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../mime/cli.js
npm ERR! dest /mnt/AB67-D2AC/ticketing/issueTracking/node_modules/.bin/mime
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../mime/cli.js' -> '/mnt/AB67-D2AC/ticketing/issueTracking/node_modules/.bin/mime'
npm ERR!  [Error: EPERM: operation not permitted, symlink '../mime/cli.js' -> '/mnt/AB67-D2AC/ticketing/issueTracking/node_modules/.bin/mime'] {
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../mime/cli.js',
npm ERR!   dest: '/mnt/AB67-D2AC/ticketing/issueTracking/node_modules/.bin/mime'
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!     /home/hppc/.npm/_logs/2023-03-29T14_49_56_221Z-debug-0.log
David avatar
cn flag
FAT32 does not support ANY Ubuntu file permissions. It is not even a FS type that Ubuntu normally understands.
ch flag
Did you "try running the command again as root/Administrator" as suggested at the end of error message?
Drwooi Poipoi avatar
ca flag
@David Thanks, I figured it was something like that but I had too many things to look into with no previous experience
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.