I got my error code when trying to add plugin to my Ionic 2 project.
C:\Users\alex\Documents\GitHub\myApp>ionic cordova plugin add cordova-plugin-mfp
cordova plugin add cordova-plugin-mfp --save
Error: Failed to fetch plugin cordova-plugin-mfp via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963248 Error output:
npm ERR! path C:\Users\alex\Documents\GitHub\myApp\node_modules\fsevents\node_modules\rc\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir ‘C:\Users\sharafat.shariff\Documents\GitHub\myApp\node_modules\fsevents\node_modules\rc\node_modules’
npm ERR! { Error: EPERM: operation not permitted, scandir ‘C:\Users\sharafat.shariff\Documents\GitHub\myApp\node_modules\fsevents\node_modules\rc\node_modules’
npm ERR! stack: ‘Error: EPERM: operation not permitted, scandir 'C:\Users\sharafat.shariff\Documents\GitHub\myApp\node_modules\fsevents\node_modules\rc\node_modules'’,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘scandir’,
npm ERR! path: ‘C:\Users\alef\Documents\GitHub\myApp\node_modules\fsevents\node_modules\rc\node_modules’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
Can anyone help me with this?