安裝完成后,使用npm run dev 運行,成功后,就可以在瀏覽器中看到vue的歡迎畫面了
最后一步可能報錯,我就遇到這樣的問題了,

個人問題僅供參考:
ERROR Failed to compile with 2 errors
error in ./src/components/Hello.vue
Module build failed: Error: Missing binding /Users/fungleo/Sites/MyWork/vuedemo2/node_modules/node-sass/vendor/darwin-x64-57/binding.node Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
Found bindings for the following environments: - OS X 64-bit with Node.js 6.x
首先在項目目錄下依次安裝以下文件:
npm install node-sass
npm i node-sass -D
如果繼續報錯,會提醒安裝element-ui就可以運行項目了,我們繼續在項目目錄下安裝它就好了:
npm install --save element-ui
然后運行項目就OK啦,終於不報錯啦!
下面是我的公眾號,大家可以關注一下,可以一起學習,一起進步:

