-
Hello, For compatibility reasons with all operating systems, I always format my removable media with exFAT. However, during the installation process of express with the command: "sudo npm install express", I get the error: -1, it says it is an administration problem. However, if I try to copy my project folder to documents on my operating system or format the USB drive to ntfs and run "sudo npm install express" again, the problem disappears. I think it may also be useful for you to know that if I copy my project folder to documents on the operating system, I perform the installation (which is successful because the disk format of the system is Ext4) and I put it back on the USB drive, I get an error about "symbolic characters", but if I run the server it starts without errors and works correctly. In any case, I send you some videos to better understand the problem. Video.del.2024-07-10.11-53-29.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The error occurs when npm tries to create a symlink for the executable from Since Express does not require executables to be installed, you can install with |
Beta Was this translation helpful? Give feedback.
The error occurs when npm tries to create a symlink for the executable from
mime
package.Since Express does not require executables to be installed, you can install with
--no-bin-links
or setbin-links
tofalse
in config to workaround this problems on filesystems, which do not support links, such as exFAT.