无法安装来自 node.js 11.15.0 的 gulp。我也尝试了 10.x 版本,它抛出了同样的错误。
$ npm install -g gulp-cli
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
changed 265 packages, and audited 266 packages in 57s
6 packages are looking for funding
run `npm fund` for details
3 low severity vulnerabilities
To address all issues, run:
npm audit fix
Run `npm audit` for details.
谁能帮我安装gulp?
我尝试删除 node_modules 目录,然后使用 "npm cache clear --force"
命令清除缓存。但没有运气。
另外,当我运行 npm install 时出现问题
$ npm install
npm ERR! code 1
npm ERR! path C:..........node_modulesnode-sass
npm ERR! command failed
....
npm ERR! gyp ERR! node -v v11.15.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
如果您遇到同样的问题,请尝试在 Netlify 上部署您的应用程序,然后您将看到构建日志,以便您修复代码!