I installed react-native globally and confirmed installation on Windows 10. Then I ran react-native command in PowerShell to install materials-kit and vector-icons. The installation of these packages failed and the directory is no longer considered a react-native project directory. I have to reinstall react-native as a result.
How can I install materials-kit and vector-icons without causing the system to uninstall react-native?
Steps Taken
I ran the below code in PowerShell. Please Note: I also used MS Visual Code and the Terminal in MS Studio Code.
Input
npm install -g react-native-cli
react-native -version
Output
react-native-cli: 2.0.1
react-native: 0.59.5
Additional Input
npm install --save react-native-material-kit react-native-vector-icons
react-native -version
Additional Ouput
react-native-cli: 2.0.1
react-native: n/a - not inside a React Native project directory
I was expecting these two react-native packages to be installed. Did not happen.
Extra Information: Error Code Snippet
...
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
...
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.