当我 运行 G运行t 时,我收到以下消息:找不到本地 npm 模块 "grunt-contrib-copy"。安装了吗?
When I run Grunt, I receive the following message: Local npm module "grunt-contrib-copy" not found. Is it installed?
我一直在尝试安装 G运行t。当我 运行 g运行t 时,我收到以下消息和警告列表:
Local Npm module "grunt-contrib-copy" not found. Is it installed?
Local Npm module "grunt-contrib-uglify" not found. Is it installed?
Local Npm module "grunt-contrib-jshint" not found. Is it installed?
Local Npm module "grunt-contrib-less" not found. Is it installed?
Local Npm module "grunt-contrib-clean" not found. Is it installed?
Local Npm module "grunt-contrib-watch" not found. Is it installed?
Local Npm module "grunt-contrib-concurrent" not found. Is it installed?
Local Npm module "grunt-contrib-nodemon" not found. Is it installed?
Local Npm module "grunt-contrib-newer" not found. Is it installed?
Warning: Task "copy:vendor" not found. Use --force to continue.
Aborted due to warnings.
我试过"npm install"、"npm install grunt --save-dev"、"grunt init:node"。解决问题;它没有用。谁能帮忙?谢谢
您似乎没有加载Gruntfile.js中的模块或者您没有安装所有模块。为所有模块尝试 npm install <module-name> --save-dev
。
运行 grunt 需要 package.json 和 Gruntfile.js 文件。将文件 package.json 和 Gruntfile 保存在项目的根目录中。之后,它将起作用。
错误:
之后在根目录中保留文件package.json和Gruntfile:
就我而言,
node_modules
在 gruntFile.js
的父目录中
奇数,可能会有帮助
我一直在尝试安装 G运行t。当我 运行 g运行t 时,我收到以下消息和警告列表:
Local Npm module "grunt-contrib-copy" not found. Is it installed?
Local Npm module "grunt-contrib-uglify" not found. Is it installed?
Local Npm module "grunt-contrib-jshint" not found. Is it installed?
Local Npm module "grunt-contrib-less" not found. Is it installed?
Local Npm module "grunt-contrib-clean" not found. Is it installed?
Local Npm module "grunt-contrib-watch" not found. Is it installed?
Local Npm module "grunt-contrib-concurrent" not found. Is it installed?
Local Npm module "grunt-contrib-nodemon" not found. Is it installed?
Local Npm module "grunt-contrib-newer" not found. Is it installed?
Warning: Task "copy:vendor" not found. Use --force to continue.
Aborted due to warnings.
我试过"npm install"、"npm install grunt --save-dev"、"grunt init:node"。解决问题;它没有用。谁能帮忙?谢谢
您似乎没有加载Gruntfile.js中的模块或者您没有安装所有模块。为所有模块尝试 npm install <module-name> --save-dev
。
运行 grunt 需要 package.json 和 Gruntfile.js 文件。将文件 package.json 和 Gruntfile 保存在项目的根目录中。之后,它将起作用。
错误:
之后在根目录中保留文件package.json和Gruntfile:
就我而言,
node_modules
在 gruntFile.js
的父目录中
奇数,可能会有帮助