4***@qq.com
4***@qq.com
  • 发布:2023-01-13 17:09
  • 更新:2023-01-13 20:43
  • 阅读:296

使用命令行创建的项目,运行一直卡在开始编译...

分类:uni-app

使用的命令vue create -p dcloudio/uni-preset-vue my-project创建的项目,创建成功后,
运行一直卡在开始编译...
hbuilder 版本已是最新3.6.17.20230112

2023-01-13 17:09 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

执行 npm run info 打印一下环境信息

  • 4***@qq.com (作者)

    不好意思,来晚了

    uni-app v3.6.15

    uni-app cli v2.0.2-3061520221228001


    Environment Info:


    System:

    OS: Windows 10

    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz

    Binaries:

    Node: 16.18.0 - D:\Software\Nodejs\node.EXE

    Yarn: Not Found

    npm: 8.19.2 - D:\Software\Nodejs\npm.CMD

    Browsers:

    Edge: 44.19041.1266.0

    npmPackages:

    @dcloudio/types: ^3.0.4 => 3.2.7 (2.6.12)

    @dcloudio/uni-app: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-app-plus: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-app-plus-nvue: 0.0.1

    @dcloudio/uni-app-plus-nvue-v8: 0.0.1

    @dcloudio/uni-automator: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-cli-i18n: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-cli-shared: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-h5: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-helper-json: * => 1.0.13

    @dcloudio/uni-i18n: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-migration: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-360: ^2.0.2-3061520221228001 => 2.0.2-3061520221228002

    @dcloudio/uni-mp-alipay: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-baidu: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-jd: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-kuaishou: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-lark: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-qq: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-toutiao: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-vue: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-weixin: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-mp-xhs: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-quickapp-native: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-quickapp-webview: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-stacktracey: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-stat: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/uni-template-compiler: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/vue-cli-plugin-hbuilderx: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/vue-cli-plugin-uni: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/vue-cli-plugin-uni-optimize: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/webpack-uni-mp-loader: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @dcloudio/webpack-uni-nvue-loader: 0.0.1

    @dcloudio/webpack-uni-pages-loader: ^2.0.2-3061520221228001 => 2.0.2-3061520221228001

    @hap-toolkit/dsl-vue: 0.6.13

    @vue/babel-helper-vue-jsx-merge-props: 1.4.0

    @vue/babel-helper-vue-transform-on: 1.0.2

    @vue/babel-plugin-jsx: 1.1.1

    @vue/babel-plugin-transform-vue-jsx: 1.4.0

    @vue/babel-preset-app: 5.0.8

    @vue/babel-preset-jsx: 1.4.0

    @vue/babel-sugar-composition-api-inject-h: 1.4.0

    @vue/babel-sugar-composition-api-render-instance: 1.4.0

    @vue/babel-sugar-functional-vue: 1.4.0

    @vue/babel-sugar-inject-h: 1.4.0

    @vue/babel-sugar-v-model: 1.4.0

    @vue/babel-sugar-v-on: 1.4.0

    @vue/cli-overlay: 5.0.8

    @vue/cli-plugin-babel: ~5.0.0 => 5.0.8

    @vue/cli-plugin-router: 5.0.8

    @vue/cli-service: ~5.0.0 => 5.0.8

    @vue/cli-shared-utils: 5.0.8

    @vue/component-compiler-utils: 3.3.0 (3.3.0)

    @vue/composition-api: 1.7.0

    @vue/devtools-api: 6.0.0-beta.15

    @vue/shared: ^3.0.0 => 3.2.45

    @vue/web-component-wrapper: 1.3.0

    mpvue-page-factory: 1.0.1

    mpvue-template-compiler: 1.0.13

    uni-h5-vue: 2.6.10

    uni-mp-vue: 2.6.10

    vue: >= 2.6.14 < 2.7 => 2.6.14

    vue-hot-reload-api: 2.3.4

    vue-loader: 17.0.1 (15.10.1, 15.10.1, 17.0.1)

    vue-router: 3.0.1

    vue-style-loader: 4.1.3 (4.1.3)

    vue-template-compiler: >= 2.6.14 < 2.7 => 2.6.14 (2.7.14, 2.6.14)

    vue-template-es2015-compiler: 1.9.1

    vue3: 1.0.0

    vuex: ^3.2.0 => 3.6.2 (3.6.2)

    vuex-persistedstate: ^4.1.0 => 4.1.0

    npmGlobalPackages:

    @vue/cli: Not Found

    2023-01-30 10:44

  • 4***@qq.com (作者)

    最后一行@vue/cli: Not Found,本地vue -V打印是5.0.8,不知道为啥打印出Not Found

    2023-01-30 10:50

  • DCloud_UNI_GSQ

    回复 4***@qq.com: 卡在编译是使用HBuilderX的菜单运行的还是直接npm run dev:h5命令运行的?

    2023-01-30 11:39

  • 4***@qq.com (作者)

    回复 DCloud_UNI_GSQ: HBuilderX的菜单运行的卡住,命令行运行能正常跑起来

    2023-02-06 08:59

  • DCloud_UNI_GSQ

    回复 4***@qq.com: 在这台电脑上新建一个空项目试试

    2023-02-06 11:31

  • 4***@qq.com (作者)

    回复 DCloud_UNI_GSQ: 之前也试过 刚刚试了下 还是卡住 第一次跑起来(用命令行)提示Error: PostCSS plugin autoprefixer requires PostCSS 8.我处理了能正常跑起来,用菜单运行到chrome或者firefox都会卡住

    2023-02-06 16:30

要回复问题请先登录注册