开发者社区> 问答> 正文

vue创建工程报错?报错

C:\Users\fanhaoyi>node -v
v10.8.0

C:\Users\fanhaoyi>npm -v
6.4.0

C:\Users\fanhaoyi>vue -V
2.9.6

 

C:\Users\fanhaoyi>vue init webpack d:\vue_project

? Project name vue_project
? Project description test
? Author fanhaoyi
? Vue build (Use arrow keys)
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run `npm install` for you after the project has been created? (recom
? Should we run `npm install` for you after the project has been created? (recom
? Should we run `npm install` for you after the project has been created? (recom
? Should we run `npm install` for you after the project has been created? (recom
? Should we run `npm install` for you after the project has been created? (recom
? Should we run `npm install` for you after the project has been created? (recom
? Should we run `npm install` for you after the project has been created? (recom
? Should we run `npm install` for you after the project has been created? (recom

mended) npm

   vue-cli · Generated "d:\vue_project".


# Installing project dependencies ...
# ========================

 

events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn C:\windows\system32\cmd.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:230:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:236:12)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

 

 

这是什么原因 ,求大神指点!

展开
收起
爱吃鱼的程序员 2020-06-06 15:39:18 578 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>可以看下我的第一条博客,有图有真真相</p>
                    
    
                        <p> http://mlyan.top/</p>
                    
    
                        <p>ok http://mlyan.top/</p>
    
    2020-06-06 15:39:30
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Vue.js 在前端服务化上的探索与实践 立即下载
利用编译将 Vue 组件转成 React 组件 立即下载
Vue.js在前端服务化上的实践与探索 立即下载