As when I run sudo npx react-native start
cmd on VSCode terminal for react-native development I have encountered with following error.
watchmanResponse: {
error: 'resolve_projpath: path `/Users/esoft/Documents/Rutuja/Myapp1/myApp1`: open: /Users/esoft/Documents/Rutuja/Myapp1/myApp1: Operation not permitted',
version: '4.9.0'
}
}
To change the permissions for Watchman regarding the Documents folder, it's under Security & Privacy -> files & folders in the system preferences
Try to change the directory of your project. I had mine on desktop and was getting that error, moved to the home folder and the error is gone
if you are in Linux based OS, try running this command to give permissions to the dir
$ sudo chmod -R 777 /path/to/dir
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.