SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.55k forks source link

Mac npm run dev #914

Open leetb-leetb opened 5 years ago

leetb-leetb commented 5 years ago

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

# Uncaught Error: Cannot find module 'axios' at Module._resolveFilename (module.js:543) at Function.Module._resolveFilename (/Users/whyf/Desktop/elec/my-project/node_modules/_electron@2.0.18@electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35) at Function.Module._load (module.js:473) at Module.require (module.js:586) at require (internal/module.js:11) at eval (webpack-internal:///axios:1) at Object.axios (renderer.js:1576) at __webpack_require__ (renderer.js:728) at fn (renderer.js:102) at eval (webpack-internal:///./src/renderer/main.js:3)

How can I reproduce this problem?

# npm run dev

If visual, provide a screenshot.

#

Tell me about your development environment.

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

zeybek commented 5 years ago

Did you check axios is installed, you should run npm i or npm install before running npm run dev command

zhouyangit commented 5 years ago

you should run npm install axios --save