Skip to content

Instantly share code, notes, and snippets.

npm ERR! TypeError: Cannot read property '_id' of undefined
npm ERR! at /usr/local/lib/node/.npm/npm/0.2.12-1/package/lib/utils/load-package-defaults.js:13:43
npm ERR! at /usr/local/lib/node/.npm/npm/0.2.12-1/package/lib/utils/async-map.js:52:35
npm ERR! at Array.forEach (native)
npm ERR! at /usr/local/lib/node/.npm/npm/0.2.12-1/package/lib/utils/async-map.js:52:11
npm ERR! at Array.forEach (native)
npm ERR! at asyncMap (/usr/local/lib/node/.npm/npm/0.2.12-1/package/lib/utils/async-map.js:51:8)
npm ERR! at loadPackageDefaults (/usr/local/lib/node/.npm/npm/0.2.12-1/package/lib/utils/load-package-defaults.js:11:3)
npm ERR! at /usr/local/lib/node/.npm/npm/0.2.12-1/package/lib/build.js:151:7
npm ERR! at P (/usr/local/lib/node/.npm/npm/0.2.12-1/package/lib/utils/read-json.js:38:22)
Tor-Ivar Valåmo@tivlg ~
$ npm list browscap
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
[email protected] PHP's get_browser/browscap.ini for Node =dangrossman remote
[email protected] PHP's get_browser/browscap.ini for Node =dangrossman remote
[email protected] PHP's get_browser/browscap.ini for Node =dangrossman installed remote
[email protected] PHP's get_browser/browscap.ini for Node =dangrossman latest remote
npm ok
var types = {
'.3gp' : 'video/3gpp',
'.a' : 'application/octet-stream',
'.ai' : 'application/postscript',
'.aif' : 'audio/x-aiff',
'.aiff' : 'audio/x-aiff',
'.asc' : 'application/pgp-signature',
'.asf' : 'video/x-ms-asf',
'.asm' : 'text/x-asm',
'.asx' : 'video/x-ms-asf',
[email protected] =marak remote
[email protected] =marak remote
[email protected] =marak remote
[email protected] =marak latest remote ok
[email protected] =capecodehq latest dev remote
[email protected] =mkitt latest stable remote
diff --git a/lib/buffer.js b/lib/buffer.js
index ecb25b7..b68e13b 100644
--- a/lib/buffer.js
+++ b/lib/buffer.js
@@ -91,6 +91,9 @@ SlowBuffer.prototype.slice = function (start, end) {
return new Buffer(this, end - start, +start);
};
+SlowBuffer.prototype.indexOf = function indexOf(pattern, offset, max_offset) {
+ return this.indexOf(pattern, offset, max_offset)