2016-03-02 76 views
0

无法运行“咕噜服务”错误:无法找到模块“负载咕噜任务”

获取下面连接错误,请做要紧

enter image description here

C:\wamp\www\ui\app>npm install 
npm ERR! install Couldn't read dependencies 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 
npm ERR! node v4.3.1 
npm ERR! npm v2.14.12 
npm ERR! path C:\wamp\www\ui\app\package.json 
npm ERR! code ENOPACKAGEJSON 
npm ERR! errno -4058 
npm ERR! syscall open 

npm ERR! package.json ENOENT: no such file or directory, open 'C:\wamp\www\ui\app\package.json' 
npm ERR! package.json This is most likely not a problem with npm itself. 
npm ERR! package.json npm can't find a package.json file in your current directory. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\wamp\www\ui\app\npm-debug.log 

C:\wamp\www\ui\app>grunt serve 
Loading "Gruntfile.js" tasks...ERROR 
>> Error: Cannot find module 'load-grunt-tasks' 
Warning: Task "serve" not found. Use --force to continue. 

Aborted due to warnings. 

回答

2

运行npm installgrunt serve

如果没有帮助,那么你需要npm install --save-dev load-grunt-tasks

+0

我附上了我的问题笔记,当我跑npm安装 – Bharanikumar

1

你可以试试这个:一般

npm install load-grunt-tasks 

,当你有:

Error Cannot find module 'module_name' 

然后npm install module_name安装你的模块!