我在创建expo-app时遇到权限错误

问题描述 投票:0回答:1

我正在尝试开始我的第一个世博会项目, 因此,在我的窗口上的 VScode 终端上运行此命令

npx create-expo-app ./

但我收到此错误消息

    Error: EPERM: operation not permitted, mkdir 'C:\Users\earth\.expo'
node:internal/bootstrap/node:123
        validateInteger(value, 'code');
        ^

TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('EPERM')
    at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
    at process.exit (node:internal/process/per_thread:180:24)
    at C:\Users\earth\AppData\Local\npm-cache\_npx\a712338f43e79bae\node_modules\create-expo-app\build\index.js:95:736
    at <anonymous>
    at async run (C:\Users\earth\AppData\Local\npm-cache\_npx\a712338f43e79bae\node_modules\create-expo-app\build\index.js:95:704) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.18.0

有什么办法可以解决这个问题吗?

node.js npm expo npx
1个回答
0
投票

改为

.
而不是
./
,它不是windows路径。

© www.soinside.com 2019 - 2024. All rights reserved.