【vue】npm run dev报错解决方法

  • Post author:
  • Post category:vue


报错:

C:\Users\Administrator\Desktop\todomvc-vue>npm star dev

npm ERR! code E403

npm ERR! 403 403 Forbidden – PUT https://registry.npm.taobao.org/dev – [no_perms] Private mode enable, only admin can publish this module

npm ERR! 403 In most cases, you or one of your dependencies are requesting

npm ERR! 403 a package version that is forbidden by your security policy.

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-01-13T12_53_34_926Z-debug.log


解决方法:升级npm至最新版本 npm install -g npm


完美丝滑解决~

C:\Users\Administrator\Desktop\todomvc-vue>npm run dev

> todomvc-app-template@1.0.0 dev C:\Users\Administrator\Desktop\todomvc-vue

> browser-sync start –server –files “*.html, css/*.css, js/.js”

[Browsersync] Access URLs:

————————————–

Local: http://localhost:3000

External: http://192.168.0.102:3000

————————————–

UI: http://localhost:3001

UI External: http://localhost:3001

————————————–

[Browsersync] Serving files from: ./

[Browsersync] Watching files…



版权声明:本文为bearmax12原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。