Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js “装载”;连接“u proxy.js”;任务…错误>&燃气轮机;TypeError:无法读取属性';原型&x27;未定义的_Node.js_Gruntjs_Grunt Connect Proxy - Fatal编程技术网

Node.js “装载”;连接“u proxy.js”;任务…错误>&燃气轮机;TypeError:无法读取属性';原型&x27;未定义的

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

我正在尝试使用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 'prototype' of undefined

看起来像是一些依赖性问题,看看这个,如果你更新“grunt连接代理”,它显然已经解决了


您的connect\u proxy.js代码是什么样子的?您是否可以使用Node作为Web服务器运行而不出现问题?
"devDependencies": {
"grunt-connect-proxy": "^0.2.0"
}