-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 create 创建项目文件缺失 #4926
Comments
也尝试切换了node的版本和vue-cli的版本,均是一样的情况。 |
请问下控制台输出是什么? 看症状大概是在执行这段代码时中止了 vue-cli/packages/@vue/cli/lib/Creator.js Lines 180 to 205 in 02f2436
可能是因为什么原因导致插件依赖没能成功安装上 |
控制台的输出,node_modules 没有生成,就只生成了package.json、package-lock.json和README.md 这三个文件, up to date in 15.277s up to date in 4.567s 📄 Generating README.md... 🎉 Successfully created project hello-world. $ cd hello-world |
能否提供一下你的 |
|
感谢 @sodatea ,我自己尝试把 |
https://docs.npmjs.com/cli/install#description
这个配置一般是用于上线运行的 Node.js 项目的。 |
为什么我在命令行运 |
我同样把 |
Version
4.0.5
Environment info
Steps to reproduce
1、vue create hello-world
2、
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, Vuex, CSS Pre-processors, Linter
? Use history mode for router? (Requires proper server setup for index fallback in production) No
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Stylus
? Pick a linter / formatter config: Standard
? Pick additional lint features: (Press to select, to toggle all, to invert selection)Lint on s
ave
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In package.json
? Save this as a preset for future projects? No
3、过程中无报错和异常
4、cd hello-world
What is expected?
无文件缺失和npm run serve 启动服务。
What is actually happening?
hello-world文件夹下只包含package.json、package-lock.json和README.md,其中package.json内容为:
{
"name": "hello-world",
"version": "0.1.0",
"private": true,
"devDependencies": {
}
}
不知道是什么原因导致的这个问题,还请给出问题排查方向或者解决办法,谢谢。
The text was updated successfully, but these errors were encountered: