zoukankan      html  css  js  c++  java
  • npm遇到的问题--npm install 执行报错 /bin/git submodule update -q --init --recursive

    1.执行npm i 安装依赖时,报错:cannot read property 'match' of undefined

    据说是npm本地缓存导致

    解决方案: rm -rf package-lock.json ( 甚至连同node_modules一起删掉   rm -rf package-lock.json node_modules)

    但是执行完毕后,又出现了新问题:/bin/git submodule update -q --init --recursive

    2.强制清除npm 缓存

     npm cache clean --force

     再执行npm i 如果还不行的话,需要退出重新登陆

    3. su -l 退出重新登陆

    在执行npm i安装即可

     

    一点一滴累积,总有一天你也会成为别人口中的大牛!
  • 相关阅读:
    2015多校.Zero Escape (dp减枝 && 滚动数组)
    UVa-11809
    UVa-1588 Kickdown
    UVa-1587
    UVa-10340
    UVa-202
    UVa-1368
    UVa-232 Crossword Answers
    UVa-227
    UVa-455 Periodic Strings
  • 原文地址:https://www.cnblogs.com/fancyLee/p/9660588.html
Copyright © 2011-2022 走看看