- 创建Vue项目出错,提示vue : 无法加载文件C:\Users\xxx\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170
 - This dependency was not found:* Vuex in ./src/store/index.js
 - ✘ 53 problems (53 errors, 0 warnings)
 
使用Vue.js遇到的问题
创建Vue项目出错,提示vue : 无法加载文件C:\Users\xxx\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170
- 以管理员身份运行PowerShell
 - 执行:get-ExecutionPolicy,回复Restricted,表示状态是禁止的
 - 执行:set-ExecutionPolicy RemoteSigned
 - 选择Y 注意:一定要以管理员的身份运行PowerShell,不是cmd窗口!
 
This dependency was not found:* Vuex in ./src/store/index.js
npm install –save vuex
✘ 53 problems (53 errors, 0 warnings)
42  http://eslint.org/docs/rules/indent
4  http://eslint.org/docs/rules/comma-spacing
3  http://eslint.org/docs/rules/keyword-spacing
1  https://google.com/#q=vue%2Frequire-v-for-key
1  https://google.com/#q=vue%2Fvalid-v-for
1  https://google.com/#q=vue%2Fno-parsing-error
1  http://eslint.org/docs/rules/space-before-blocks
不用管它,刷新页面就行了