---
title: "node.js执行提交操作时候报错"
author: "y1d2y3xyz"
date: "2013-01-23T17:30:20Z"
tags: ["Linux", "node.js"]
categories: ["开源软件"]
slug: "node-js"
draft: false
lastmod: "2013-01-23T17:29:49Z"
id: 1774620
url: "https://lovebeyond.iteye.com/blog/1774620"
---

错误代码如下 \[code="java"] /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. (/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 \[/code] 解决方式： 1。到nodejs安装的bin目录下： \[code="java"] cd /usr/local/node-v0.8.7/bin/ \[/code] 2。执行如下语句： \[code="java"] npm rebuild \[/code] 3。启动，