I am getting this error while running grunt dev:pagename .
when i am trying to install grunt-contrib-connect \. i am getting error.
DOne with npm install multiple times. Initially getting proxy-middleware issue then i install all modeules manually like hogan.js and heredoc. but this module is not getting installed.
这是我在控制台中遇到的错误。
**C:\Optimum\manageRouter\src\main\www>grunt dev:home**
>> Local Npm module "grunt-contrib-connect" not found. Is it installed?
Loading "grunt-karma.js" tasks...ERROR
>> TypeError: Cannot read property 'prototype' of undefined
enter code here
npm i grunt-contrib-connect
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t git://github.com/RanzQ/grunt-contrib-connect.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\siddhshr\AppData\Roaming\npm-cache\_logs\2019-07-14T15_14_52_180Z-debug.log
Running "dev:home" (dev) task
Found a page build file match: src/pages/home/home-build-config.json
Warning: Task "connect:page" not found. Use --force to continue.
安装grunt-contrib-connect时出错:
This command should start a static server and it should be opened in the new browser.