React Native-npm install给我一个EPERM:不允许操作,取消链接错误

时间:2019-05-06 04:56:27

标签: node.js reactjs react-native npm

大约2小时前,我发现本机响应,所以我想尝试一下。因此,我启动了控制台,然后键入“ npm install create-react-native-app -g”,安装进行得很顺利,因此我决定创建一个项目。因此,我键入了“ create-react-native-app ReactNativeTest”,结果是灾难,完整性错误,我在网上搜索了足够长的时间以找到解决方案,但是我发现不适合我的问题,这是我的问题日志:

17799 warn expo-google-sign-in@2.0.0 requires a peer of react-native@^0.55.4 but none is installed. You must install peer dependencies yourself.
17800 warn react-native-reanimated@1.0.0-alpha.11 requires a peer of react@16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
17801 warn react-native-reanimated@1.0.0-alpha.11 requires a peer of react-native@^0.44.1 but none is installed. You must install peer dependencies yourself.
17802 warn url-loader@1.1.2 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
17803 verbose stack Error: sha512-+taJh7bN2owmwaZpJUrNpHdmPAL6ZynNCZj15uLQgjaPFq0ZBIG2ZWuSJ48eGoUjAb3lrWxkmLlHb2eJFXc7sQ== integrity checksum failed when using sha512: wanted sha512-+taJh7bN2owmwaZpJUrNpHdmPAL6ZynNCZj15uLQgjaPFq0ZBIG2ZWuSJ48eGoUjAb3lrWxkmLlHb2eJFXc7sQ== but got sha512-bD0JKadHSxamqfa/Fgbnh9CoUrFDmLMPdQmEdRPIquZLWHvo19U1kfeo3F0y0kVZfD4u4pCXP12Nj6ZY+X9Q7Q==. (1304678 bytes)
17803 verbose stack     at Transform.on (C:\Program Files\nodejs\node_modules\npm\node_modules\ssri\index.js:275:19)
17803 verbose stack     at emitNone (events.js:111:20)
17803 verbose stack     at Transform.emit (events.js:208:7)
17803 verbose stack     at endReadableNT (_stream_readable.js:1064:12)
17803 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
17803 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)
17804 verbose cwd C:\Users\user\Desktop\Projets\ReactNativeTest
17805 verbose Windows_NT 10.0.17134
17806 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
17807 verbose node v8.11.4
17808 verbose npm  v5.6.0
17809 error code EINTEGRITY
17810 error sha512-+taJh7bN2owmwaZpJUrNpHdmPAL6ZynNCZj15uLQgjaPFq0ZBIG2ZWuSJ48eGoUjAb3lrWxkmLlHb2eJFXc7sQ== integrity checksum failed when using sha512: wanted sha512-+taJh7bN2owmwaZpJUrNpHdmPAL6ZynNCZj15uLQgjaPFq0ZBIG2ZWuSJ48eGoUjAb3lrWxkmLlHb2eJFXc7sQ== but got sha512-bD0JKadHSxamqfa/Fgbnh9CoUrFDmLMPdQmEdRPIquZLWHvo19U1kfeo3F0y0kVZfD4u4pCXP12Nj6ZY+X9Q7Q==. (1304678 bytes)
17811 verbose exit [ 1, true ]

编辑:我尝试了“ npm i npm”,但出现了相同的错误

EDIT2:我尝试了'npm clean cache --force',它给了我一个新的错误:

npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink

1 个答案:

答案 0 :(得分:0)

问题已解决:降级为npm@5.3