请通过以下错误帮助我。对于错误的错误格式,我们深表歉意。我不知道我该在哪里显示错误。
internal / fs / utils.js:220 犯错 ^
错误:EPERM:不允许操作,chmod'/ usr / local / lib / node_modules / react-native / node_modules / @ react-native-community / cli / build / commands / server / external / xsel'
at Object.chmodSync (fs.js:1104:3)
at Object.<anonymous> (/usr/local/lib/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/server/copyToClipBoard.js:50:15)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/usr/local/lib/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/server/middleware/copyToClipBoardMiddleware.js:8:47)
at Module._compile (internal/modules/cjs/loader.js:956:30) {
errno:-1, syscall:'chmod',
代码:“ EPERM”,
路径:'/ usr / local / lib / node_modules / react-native / node_modules / @ react-native-community / cli / build / commands / server / external / xsel' }
答案 0 :(得分:1)
使用此命令在Linux中获得许可。用您的Linux用户名替换userName
sudo chown userName -R /dev/kvm
对我来说
sudo chown aurangzaib -R /dev/kvm