Node.js “装载”;连接“u proxy.js”;任务…错误>&燃气轮机;TypeError:无法读取属性';原型&x27;未定义的
我正在尝试使用grunt运行http服务器。但是,当我在适当的目录中键入grunt serve时,会出现以下错误:Node.js “装载”;连接“u proxy.js”;任务…错误>&燃气轮机;TypeError:无法读取属性';原型&x27;未定义的,node.js,gruntjs,grunt-connect-proxy,Node.js,Gruntjs,Grunt Connect Proxy,我正在尝试使用grunt运行http服务器。但是,当我在适当的目录中键入grunt serve时,会出现以下错误: Loading "connect_proxy.js" tasks...ERROR >> TypeError: Cannot read property 'prototype' of undefined Loading "connect_proxy.js" tasks...ERROR >> TypeError: Cannot read property 'pr
Loading "connect_proxy.js" tasks...ERROR
>> TypeError: Cannot read property 'prototype' of undefined
Loading "connect_proxy.js" tasks...ERROR
>> TypeError: Cannot read property 'prototype' of undefined
看起来像是一些依赖性问题,看看这个,如果你更新“grunt连接代理”,它显然已经解决了
您的connect\u proxy.js代码是什么样子的?您是否可以使用Node作为Web服务器运行而不出现问题?
"devDependencies": {
"grunt-connect-proxy": "^0.2.0"
}