导入vue项目 npm install 错误集锦

1、版本冲突

  • 错误代码:
    1 npm ERR! Fix the upstream dependency conflict, or retry
    2 npm ERR! this command with --force, or --legacy-peer-deps
    3 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
  • 解决方案:
    根据建议,执行 npm install --forcenpm install --legacy-peer-deps

2、pickAlgorithm

  • 错误代码:
    1 npm ERR! Cannot read properties of null (reading 'pickAlgorithm')
  • 解决方案:
    1  npm cache clear --force 
    2  重新运行 npm i 命令

     

posted @ 2022-09-16 18:25  陈醋当墨写尽人生酸楚  阅读(123)  评论(0编辑  收藏  举报