'Unable to upload SVG images using ngx-dropzone in Angular

I'm getting the below error when trying to select SVG images using ngx-dropzone.

enter image description here



Solution 1:[1]

You can see from the path in your final screenshot that npm is trying to edit your package-lock.json file in the C:\WINDOWS\System32 directory and does not have permission to do that.

You can refer to this answer on how to update your npm configuration to use a folder that you do have permissions to write to.

Solution 2:[2]

You have no problem executing React-native even if you do not perform the npm audit fix command

Also, you are not in the right position to do the command. The command must be executed in your project folder.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tom
Solution 2 hong developer