我刚刚看到Vue本机,我想尝试一下,但是按照官方文档中的命令我无法使它工作。
我完成了所有安装npm install --global vue-native-cli
,此后文档说->步骤1:使用CLI的init命令创建一个新项目
vue-native init <projectName>
我这样做了,但是却抛出了很多错误
Using globally installed expo-cli 3.4.1
Creating Vue Native project testproject
- Creating project with expo-cli
[17:36:32] --name: argument is required in non-interactive mode.
√ Created project with expo-cli
(node:8688) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, chdir 'E:\Vue native' -> 'testproject'
at process.chdir (internal/process/main_thread_only.js:29:13)
at installPackages (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:182:11)
at createExpoProject (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:123:3)
at init (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:101:5)
at Command.<anonymous> (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:69:7)
at Command.listener (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\node_modules\commander\index.js:315:8)
at Command.emit (events.js:210:5)
at Command.parseArgs (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\node_modules\commander\index.js:651:12)
at Command.parse (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\node_modules\commander\index.js:474:21)
at Object.<anonymous> (C:\Users\AppData\Roaming\npm\node_modules\vue-native-cli\src\index.js:81:9)
(node:8688) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8688) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
有人遇到这个问题吗?还是可以指导我如何正确安装和运行该应用程序? 谢谢。