Gulp 我如何解决当我大口大口喝时发生的原型污染?
我正在尝试在我的新Mac上设置一个开发环境。当我尝试运行gulp时,我得到了一个原型污染错误和一些其他错误,您可以在下面找到 我已经尝试通过NPM更新我的Lodash,但没有成功。以及卸载节点和NPM并在全局范围内重新安装Gulp 我如何解决当我大口大口喝时发生的原型污染?,gulp,gulp-watch,gulp-sass,gulp-sourcemaps,Gulp,Gulp Watch,Gulp Sass,Gulp Sourcemaps,我正在尝试在我的新Mac上设置一个开发环境。当我尝试运行gulp时,我得到了一个原型污染错误和一些其他错误,您可以在下面找到 我已经尝试通过NPM更新我的Lodash,但没有成功。以及卸载节点和NPM并在全局范围内重新安装 ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Prototype Pollution │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=4.17.5 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ gulp-replace-task │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ gulp-replace-task > applause > lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/577 │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Prototype Pollution │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=4.17.11 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ gulp-replace-task │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ gulp-replace-task > applause > lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/782 │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Prototype Pollution │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=4.17.12 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ gulp-replace-task │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ gulp-replace-task > applause > lodash │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1065 │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ braces │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=2.3.1 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ gulp-watch │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ gulp-watch > anymatch > micromatch > braces │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/786 │
└───────────────┴────────────────────────────────────────
MacBook-Pro-van-Jochem:steilachterover jochem$ gulp app
/Applications/MAMP/htdocs/steilachterover/node_modules/require-dir/index.js:93
if (!require.extensions.hasOwnProperty(ext)) {
^
[TypeError: require.extensions.hasOwnProperty is not a function
at requireDir (/Applications/MAMP/htdocs/steilachterover/node_modules/require-dir/index.js:93:37)