当前位置: 代码迷 >> JavaScript >> node.js施行提交操作时候报错
  详细解决方案

node.js施行提交操作时候报错

热度:573   发布时间:2013-01-28 11:49:56.0
node.js执行提交操作时候报错
错误代码如下

/home/git/agilenotes-code/node_modules/jquery/lib/node-jquery.js:10
    window.XMLHttpRequest.prototype.withCredentials = false;
                         ^
TypeError: Cannot read property 'prototype' of undefined
    at create (/home/git/agilenotes-code/node_modules/jquery/lib/node-jquery.js:10:26)
    at /home/git/agilenotes-code/node_modules/jquery/lib/node-jquery.js:9435:18
    at Object.<anonymous> (/home/git/agilenotes-code/node_modules/jquery/lib/node-jquery.js:9437:2)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at /home/git/agilenotes-code/routes/index.js:93:34



解决方式:

1。到nodejs安装的bin目录下:
 cd /usr/local/node-v0.8.7/bin/

2。执行如下语句:
npm rebuild

3。启动,
  相关解决方案