Vue2 开发/学习 笔记

  1. 问题记录: npm install 报 network proxy 的问题
    解决办法:
    npm config set proxy null
    npm config set https-proxy null
    npm config set registry http://registry.npmjs.org/
    npm config set strict-ssl false
    参考链接

  2. 问题记录: request to https://registry.cnpmjs.org/vue failed, reason: Hostname/IP does not match certificate‘s
    命令行执行: npm config set strict-ssl false
    参考链接

  3. 问题记录: Unexpected token u in JSON at position 0
    很可能是,JSON.parse()中的值为undefined导致的

  4. 问题记录: TypeError: this.getOptions is not a function
    参考链接
    原因: less-loader安装的版本过高
    解决方案: 1.npm uninstall less-loader
          2.npm install [email protected]

  5. npm run dev 报错

猜你喜欢

转载自blog.csdn.net/hujian66/article/details/128202470
今日推荐