【发布时间】:2021-04-11 14:29:51
【问题描述】:
每次我在终端运行“npm install -g heroku”时都会弹出这个错误
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
> yarn@1.22.10 preinstall /usr/local/lib/node_modules/heroku/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/heroku/bin/run
npm ERR! dest /usr/local/bin/heroku
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/heroku/bin/run' -> '/usr/local/bin/heroku'
npm ERR! File exists: /usr/local/bin/heroku
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/peter/.npm/_logs/2021-01-05T19_51_17_072Z-debug.log
我尝试在终端中更新 Debug 版本但没有成功,任何建议将不胜感激。如果您需要我提供更多信息,请告诉我。
【问题讨论】:
标签: node.js heroku npm version