[英]Error while running “react-native run-android”
請在下面幫助我解決此錯誤。 並對錯誤的錯誤格式感到抱歉。 我不知道我應該如何在這里顯示錯誤。
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) {
錯誤號:-1,系統調用:'chmod',
代碼:'EPERM',
路徑:'/usr/local/lib/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/server/external/xsel' }
使用此命令在 Linux 中獲取權限。 用您的 Linux 用戶名替換 userName
sudo chown userName -R /dev/kvm
為了我
sudo chown aurangzaib -R /dev/kvm
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.