所有的npm安装都给出了错误和警告,但最后会说“一切都好”. 当我尝试咕噜声时,我收到了这些警告. Local Npm module "grunt-contrib-connect" not found. Is it installed? Local Npm module "grunt-contrib-watch"
当我尝试咕噜声时,我收到了这些警告.
>> Local Npm module "grunt-contrib-connect" not found. Is it installed? >> Local Npm module "grunt-contrib-watch" not found. Is it installed? >> Local Npm module "grunt-contrib-htmlmin" not found. Is it installed? >> Local Npm module "grunt-contrib-cssmin" not found. Is it installed? >> Local Npm module "grunt-contrib-uglify" not found. Is it installed? >> Local Npm module "grunt-bower-requirejs" not found. Is it installed? >> Local Npm module "grunt-eslint" not found. Is it installed? >> Local Npm module "grunt-jscs" not found. Is it installed?
我如何解决它?
你在Mac或Windows上安装?首先,确保Grunt Client安装在您的目录中:
$npm install -g grunt-cli
然后:
$npm install grunt-serve
有关安装的更多文档,请访问:
https://www.npmjs.org/package/grunt-serve