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

报错:

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

> [email protected] 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...
 

你可能感兴趣的:(【vue】npm run dev报错解决方法)