当前位置 : 主页 > 网页制作 > Nodejs >

node.js – 让grunt命令无效

来源:互联网 收集:自由互联 发布时间:2021-06-16
所有的npm安装都给出了错误和警告,但最后会说“一切都好”. 当我尝试咕噜声时,我收到了这些警告. Local Npm module "grunt-contrib-connect" not found. Is it installed? Local Npm module "grunt-contrib-watch"
所有的npm安装都给出了错误和警告,但最后会说“一切都好”.
当我尝试咕噜声时,我收到了这些警告.

>> 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

网友评论