代码之家  ›  专栏  ›  技术社区  ›  Amitoj Singh Khurana

无法通过install npm在MAC中安装Cypress install Cypress--save dev

  •  0
  • Amitoj Singh Khurana  · 技术社区  · 2 年前

    无法在Mac上安装Cypress工具

    npm install cypress --save-dev is not working niether npm install cypress
    npm ERR! code EACCES
    npm ERR! syscall open
    npm ERR! path /Users/amitojkhurana/.npm/_cacache/tmp/0a7c5eac
    npm ERR! errno -13
    npm ERR! 
    npm ERR! Your cache folder contains root-owned files, due to a bug in
    npm ERR! previous versions of npm which has since been addressed.
    npm ERR! 
    npm ERR! To permanently fix this problem, please run:
    npm ERR!   sudo chown -R 501:20 "/Users/amitojkhurana/.npm"
    
    npm ERR! A complete log of this run can be found in: /Users/amitojkhurana/.npm/_logs/2024-04-03T23_00_24_412Z-debug-0.log
    
    1 回复  |  直到 2 年前
        1
  •  0
  •   paulmelnikow    2 年前

    它告诉你在这里该做什么:

    sudo chown -R 501:20 "/Users/amitojkhurana/.npm"
    
    推荐文章