【发布时间】:2022-01-22 22:16:47
【问题描述】:
我正在尝试开始创建 react 应用,但我从 npm 收到此消息,请有人帮忙!
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /Users/fabiodiceglie/.npm/_cacache/content-v2/sha1/17/4b
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/fabiodiceglie/.npm"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/fabiodiceglie/.npm/_logs/2022-01-22T10_33_07_875Z-debug-0.log
【问题讨论】:
-
运行
npm i tar更新您的 tar 并消除警告 -
不工作:(还是同样的错误
标签: javascript node.js reactjs npm terminal