I tried to install vue/cli, but it wouldn't work. I'm not sure why it wouldn't work. My node version is v14.15.1.
It would show this error:
3256 error code EPERM
3257 error syscall mkdir
3258 error path C:\Program Files\nodejs\node_modules\@vue
3259 error errno -4048
3260 error Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\@vue'
3260 error [Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\@vue'] {
3260 error errno: -4048,
3260 error code: 'EPERM',
3260 error syscall: 'mkdir',
3260 error path: 'C:\\Program Files\\nodejs\\node_modules\\@vue'
3260 error }
3261 error The operation was rejected by your operating system.
3261 error It's possible that the file was already in use (by a text editor or antivirus),
3261 error or that you lack permissions to access it.
3261 error
3261 error If you believe this might be a permissions issue, please double-check the
3261 error permissions of the file and its containing directories, or try running
3261 error the command again as root/Administrator.
3262 verbose exit -4048
so I typed
npm set prefix 'C:\Users\User\AppData\Roaming\npm'
and then this would show up
Error: EINVAL: invalid argument, mkdir 'C:\Users\user\'C:\Users\User\AppData\Roaming\npm''
Error: EINVAL: invalid argument, mkdir 'C:\Users\user\'C:\Users\User\AppData\Roaming\npm''
Hope someone can help find the error and fix it. Thanks in advance.