Ali*_*ari 5 native npm vue.js react-native vue-native
我正在尝试:
vue-native init test-project
我得到了这个输出:
使用全局安装的 expo-cli 3.0.10
创建 Vue Native 项目 project-new
[09:09:29] --name:在非交互模式下需要参数。? 使用 expo-cli 创建项目
(node:9072) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, chdir 'project-new' at process.chdir (internal/process/main_thread_only.js:31:12) at installPackages (C:\Users\User\ AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:182:11) 在 createExpoProject (C:\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\src\ index.js:123:3) 在 init (C:\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:101:5) 在命令。(C:\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:69:7) 在 Command.listener (C:\Users\User\AppData\Roaming\npm\ node_modules\vue-native-cli\node_modules\commander\index.js:315:8) at Command.emit (events.js:182:13) at Command.parseArgs (C: \Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\node_modules\commander\index.js:651:12) 在 Command.parse (C:\Users\User\AppData\Roaming\npm\node_modules \vue-native-cli\node_modules\commander\index.js:474:21) 在 Object. (C:\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:81:9) (node:9072) UnhandledPromiseRejectionWarning:未处理的承诺拒绝。这个错误要么是因为在没有 catch 块的情况下抛出了异步函数,要么是因为拒绝了一个没有用 .catch() 处理过的承诺。(rejection id: 1) (node:9072) [DEP0018] DeprecationWarning:不推荐使用未处理的承诺拒绝。将来,未处理的承诺拒绝将使用非零退出代码终止 Node.js 进程。\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\node_modules\commander\index.js:474:21) 在 Object. (C:\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:81:9) (node:9072) UnhandledPromiseRejectionWarning:未处理的承诺拒绝。这个错误要么是因为在没有 catch 块的情况下抛出了异步函数,要么是因为拒绝了一个没有用 .catch() 处理过的承诺。(rejection id: 1) (node:9072) [DEP0018] DeprecationWarning:不推荐使用未处理的承诺拒绝。将来,未处理的承诺拒绝将使用非零退出代码终止 Node.js 进程。\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\node_modules\commander\index.js:474:21) 在 Object. (C:\Users\User\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:81:9) (node:9072) UnhandledPromiseRejectionWarning:未处理的承诺拒绝。这个错误要么是因为在没有 catch 块的情况下抛出了异步函数,要么是因为拒绝了一个没有用 .catch() 处理过的承诺。(rejection id: 1) (node:9072) [DEP0018] DeprecationWarning:不推荐使用未处理的承诺拒绝。将来,未处理的承诺拒绝将使用非零退出代码终止 Node.js 进程。9)(节点:9072)UnhandledPromiseRejectionWarning:未处理的承诺拒绝。这个错误要么是因为在没有 catch 块的情况下抛出了异步函数,要么是因为拒绝了一个没有用 .catch() 处理过的承诺。(rejection id: 1) (node:9072) [DEP0018] DeprecationWarning:不推荐使用未处理的承诺拒绝。将来,未处理的承诺拒绝将使用非零退出代码终止 Node.js 进程。9)(节点:9072)UnhandledPromiseRejectionWarning:未处理的承诺拒绝。这个错误要么是因为在没有 catch 块的情况下抛出了异步函数,要么是因为拒绝了一个没有用 .catch() 处理过的承诺。(rejection id: 1) (node:9072) [DEP0018] DeprecationWarning:不推荐使用未处理的承诺拒绝。将来,未处理的承诺拒绝将使用非零退出代码终止 Node.js 进程。
我已经安装了React Native CLI、Expo CLI和Vue Native CLI。我试图通过更新来解决这个问题,npm但没有奏效。同样,当我运行时:
vue-native init test-project --no-crna
没关系,没有出现错误。