Javascript 吞咽有问题

Javascript 吞咽有问题,javascript,gulp,Javascript,Gulp,以下是终端输出的外观: Kayas-MacBook-Pro:~ pineapplelaptop$ npm install --global 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#deprecate

以下是终端输出的外观:

Kayas-MacBook-Pro:~ pineapplelaptop$ npm install --global 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
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/gulp-cli/bin/gulp.js
npm ERR! dest /usr/local/bin/gulp
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/gulp-cli/bin/gulp.js' -> '/usr/local/bin/gulp'
npm ERR! File exists: /usr/local/bin/gulp
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/pineapplelaptop/.npm/_logs/2020-04-06T16_00_35_220Z-debug.log
Kayas-MacBook-Pro:~ pineapplelaptop$ 

还有其他人面临过这个问题吗?

你有没有试着按照它说的去做

npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
另外,请尝试使用命令
npm config list
查看npm中的所有配置。

尝试以下操作:

  • 运行:npm安装gulp-g-verbose

  • 然后运行:设置ExecutionPolicy-ExecutionPolicy旁路-Scope CurrentUser


  • 我在ubuntu中解析,重新安装node

    sudo apt-get remove nodejs
    
    sudo apt-get install nodejs
    
    sudo npm install --global gulp-cli
    

    你能添加你的npm和节点版本吗?是的,我已经做了很多次了,但似乎什么都没做。但我只是做了更多的研究,不久就让gulp下载了。谢谢最好解释一下你的代码,让它成为一个完全可以理解的答案。