Tried many solutions for this error. Even reinstalled Ubuntu 3 times but nothing changed. Everytime i try to create new react-native project it throws same error.
✔ Downloading template
⠋ Copying template/home/shiva/.npm/_npx/64e95eb2d999e37b/node_modules/graceful-fs/polyfills.js:265
if (!chownErOk(er)) throw er
^
Error: ENOENT: no such file or directory, chmod '/home/shiva/Projects/my-app/android/gradle/wrapper/gradle-wrapper.properties'
at Object.chmodSync (node:fs:1991:3)
at Object.chmodSync (/home/shiva/.npm/_npx/64e95eb2d999e37b/node_modules/graceful-fs/polyfills.js:263:21)
at ReadStream.<anonymous> (/home/shiva/.npm/_npx/64e95eb2d999e37b/node_modules/@react-native-community/cli/build/tools/copyFiles.js:83:19)
at ReadStream.emit (node:events:517:28)
at emitCloseNT (node:internal/streams/destroy:132:10)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
errno: -2,
syscall: 'chmod',
code: 'ENOENT',
path: '/home/shiva/Projects/my-app/android/gradle/wrapper/gradle-wrapper.properties'
}
我正在学习React-Native,也是Linux的新手。
已尝试给予对“项目”文件夹的完全访问权限,但没有任何效果。
1条答案
按热度按时间x7yiwoj41#
没有最新标签的运行命令:)为我工作