Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用vue-cli创建的项目,用npm run serve启动不了,到了9%直接自动退出 #7418

Open
2kailsy opened this issue Aug 18, 2023 · 3 comments

Comments

@2kailsy
Copy link

2kailsy commented Aug 18, 2023

Version

4.5.15

Environment info

System:
    OS: Windows 10 10.0.22621
    CPU: (4) x64 Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
  Binaries:
    Node: 18.16.1 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 9.5.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.22621.1848.0), Chromium (115.0.1901.203)
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.4.0
    @vue/babel-helper-vue-transform-on:  1.1.5
    @vue/babel-plugin-jsx:  1.1.5
    @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-eslint: ~5.0.0 => 5.0.8
    @vue/cli-plugin-router: ~5.0.0 => 5.0.8
    @vue/cli-plugin-vuex:  5.0.8
    @vue/cli-service: ~5.0.0 => 5.0.8
    @vue/cli-shared-utils:  5.0.8
    @vue/compiler-sfc:  2.7.14
    @vue/component-compiler-utils:  3.3.0
    @vue/web-component-wrapper:  1.3.0
    eslint-plugin-vue: ^8.0.3 => 8.7.1
    vue: ^2.6.14 => 2.7.14
    vue-eslint-parser:  8.3.0
    vue-hot-reload-api:  2.3.4
    vue-loader:  17.2.2 (15.10.1)
    vue-router: ^3.5.1 => 3.6.5
    vue-style-loader:  4.1.3
    vue-template-compiler: ^2.6.14 => 2.7.14
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

我不知道要怎么才能复现

What is expected?

帮我找出问题,弄了三天了

What is actually happening?

我并不知道是怎么出现的问题,只是在我重装系统后,我明明还可以运行,但是到了第二天就不行了,他就卡在9%,还有我的cnpm也不能用了,我cnpm -v可以,但是cnpm i执行了以后返回空格,不知道是不是我环境的问题

@2kailsy
Copy link
Author

2kailsy commented Aug 18, 2023

node重装就好了,从来没遇到过

@bfrontend
Copy link

有什么错误日志吗

@LuoRiWuSheng
Copy link

大概率是 相关联的 包,比如 sass-loader, sass, less, less-loader 等版本不兼容。 或者是 自己指定了 webpack配置

@vue/cli 5.x 最新版本,我这边已经在 40多个系统稳定运行了一年多 ,没有问题, 从3迁移到5, 也还好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants