gpt4 book ai didi

node.js - 咕噜声 - 得到 "Local Npm module "xxx"not found. 它是安装 ?"What' s 造成的吗?

转载 作者:IT老高 更新时间:2023-10-28 21:55:02 26 4
gpt4 key购买 nike

我刚刚收到一份 grunt 包的副本,但我是 grunt 的新手,并且无法找到一些问题的答案。最大的问题是不知道下面的错误来自哪里 - 有人可以告诉我这是来自哪里吗?这两个文件都在同一个目录中。

$ grunt
>> Local Npm module "grunt-contrib-clean" not found. Is it installed?
>> Local Npm module "grunt-contrib-concat" not found. Is it installed?
>> Local Npm module "grunt-contrib-copy" not found. Is it installed?
>> Local Npm module "grunt-contrib-cssmin" not found. Is it installed?
>> Local Npm module "grunt-contrib-handlebars" not found. Is it installed?
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
>> Local Npm module "grunt-contrib-qunit" not found. Is it installed?
>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
>> Local Npm module "grunt-preprocess" not found. Is it installed?
>> Local Npm module "grunt-wrap" not found. Is it installed?
>> Local Npm module "grunt-debug-task" not found. Is it installed?
Warning: Task "clean" not found. Use --force to continue.

Aborted due to warning.

$

这是我的 package.json:

{
"name": "baked-widget",
"srcDirectory": "./src",
"srcJavascript": "./src/js",
"srcCss": "./src/css",
"srcData": "./src/data",
"testDirectory": "./test",
"tgtDirectory": "./build",
"installDirectory": "../com/public/widgets",
"version": "4.2.0",
"devDependencies": {
"grunt": "~0.4",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-handlebars": "~0.6",
"grunt-contrib-jshint": "~0.8",
"grunt-contrib-uglify": "~0.3",
"grunt-contrib-qunit": "~0.4",
"grunt-contrib-watch": "~0.5",
"grunt-preprocess": "~4.0",
"grunt-wrap": "~0.3",
"grunt-debug-task": "~0.1.4"
}
}

最佳答案

您可能没有在本地安装必要的软件包。尝试 npm install (sudo npm install) 以确保你做到了。

关于node.js - 咕噜声 - 得到 "Local Npm module "xxx"not found. 它是安装 ?"What' s 造成的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23767122/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com