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

问题描述 投票:0回答:1

无法在 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
cypress cypress-cucumber-preprocessor
1个回答
0
投票

它告诉你在这里做什么:

sudo chown -R 501:20 "/Users/amitojkhurana/.npm"
© www.soinside.com 2019 - 2024. All rights reserved.