在Ubuntu 17.10上安装Gulp
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Ubuntu 17.10上安装Gulp相关的知识,希望对你有一定的参考价值。
我在main gulp页面上运行了指令,gulp没有运行:
ole@mki$ npm install gulp-cli -g
/home/ole/.npm-global/bin/gulp -> /home/ole/.npm-global/lib/node_modules/gulp-cli/bin/gulp.js
+ gulp-cli@2.0.1
updated 1 package in 6.883s
ole@mki:$ npm install gulp -D
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ gulp@3.9.1
updated 1 package in 10.576s
ole@mki:$ gulp --help
The program 'gulp' is currently not installed. You can install it by typing:
sudo apt install gulp
答案
什么是错误消息?或尝试而不是Sudo apt install glup
尝试
Sudo apt-get install glub
另一答案
根据NPM Without Sudo Instructions,我在~/.npmrc
犯了一个错误。而不是prefix=${HOME}/.npm-packages
我有prefix=${HOME}/.npm-global
。
以上是关于在Ubuntu 17.10上安装Gulp的主要内容,如果未能解决你的问题,请参考以下文章
在Ubuntu 17.10(GPU)上安装Pytorch的问题
text 在ubuntu17.10上安装fern-wifi-cracker