pm WARN EPACKAGEJSON <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8d8c9dadcc6cddad8c7dadcc9c4e89886988698" rel="noreferrer noopener nofollow">[email protected]</a> No description
npm WARN EPACKAGEJSON <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="15657467617b7067657a6761747955253b253b25" rel="noreferrer noopener nofollow">[email protected]</a> No license field.
>> Local Npm module "grunt-autoprefixer" not found. Is it installed?
>> Local Npm module "grunt-concurrent" not found. Is it installed?
>> Local Npm module "grunt-contrib-concat" not found. Is it installed?
>> Local Npm module "grunt-contrib-connect" not found. Is it installed?
>> Local Npm module "grunt-contrib-htmlmin" not found. Is it installed?
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
>> Local Npm module "grunt-contrib-watch" not found. Is it installed?
>> Local Npm module "grunt-filerev" not found. Is it installed?
>> Local Npm module "grunt-google-cdn" not found. Is it installed?
>> Local Npm module "grunt-karma" not found. Is it installed?
>> Local Npm module "grunt-newer" not found. Is it installed?
>> Local Npm module "grunt-ng-annotate" not found. Is it installed?
>> Local Npm module "grunt-svgmin" not found. Is it installed?
>> Local Npm module "grunt-usemin" not found. Is it installed?
>> Local Npm module "grunt-wiredep" not found. Is it installed?
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'time-grunt'
NPM 和 grunt 新手。不确定到底发生了什么?有什么想法如何调试吗?安装了NPM和BOWER
最佳答案
我认为,在运行 grunt
之前,您没有运行 npm install
来安装项目的所有软件包。在正常情况下,构建一个 Grunt App。我们应该按以下步骤运行:
安装 NPM 软件包。
cd to_root_project_path
npm install
安装 Bower 软件包
bower install
最后,运行 grunttast
关于javascript - Grunt "Gruntfile.js"任务...错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33969384/