Skip to content

Commit 6b5b6d2

Browse files
Update npm in order to support node 0.12
Update npm to 2.6.1 and change two calls according to latest npm.cache changes. If we do not update npm, we cannot work with node 0.12 Update ios-sim-portable to 1.0.4 Fixes #268
1 parent cdb0167 commit 6b5b6d2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/node-package-manager.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ export class NodePackageManager implements INodePackageManager {
131131

132132
private addToCacheCore(packageName: string, version: string): IFuture<void> {
133133
var future = new Future<void>();
134-
npm.commands["cache"].add(packageName, version, undefined, (err: Error, data: any) => {
134+
// cache.add = function (pkg, ver, where, scrub, cb)
135+
npm.commands["cache"].add(packageName, version, undefined, false, (err: Error, data: any) => {
135136
if(err) {
136137
future.throw(err);
137138
} else {
@@ -144,7 +145,8 @@ export class NodePackageManager implements INodePackageManager {
144145
public cacheUnpack(packageName: string, version: string, unpackTarget?: string): IFuture<void> {
145146
var future = new Future<void>();
146147
unpackTarget = unpackTarget || path.join(npm.cache, packageName, version, "package");
147-
npm.commands["cache"].unpack(packageName, version, unpackTarget, (err: Error, data: any) => {
148+
// function unpack (pkg, ver, unpackTarget, dMode, fMode, uid, gid, cb)
149+
npm.commands["cache"].unpack(packageName, version, unpackTarget, null, null, null, null, (err: Error, data: any) => {
148150
if(err) {
149151
future.throw(err);
150152
} else {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
"filesize": "2.0.3",
3434
"gaze": "0.5.1",
3535
"iconv-lite": "0.4.4",
36-
"ios-sim-portable": "1.0.2",
36+
"ios-sim-portable": "1.0.4",
3737
"lockfile": "1.0.0",
3838
"lodash": "3.2.0",
3939
"log4js": "0.6.9",
4040
"mkdirp": "0.3.5",
4141
"mute-stream": "0.0.4",
4242
"node-uuid": "1.4.1",
43-
"npm": "1.4.26",
43+
"npm": "2.6.1",
4444
"osenv": "0.1.0",
4545
"open": "0.0.4",
4646
"plist": "1.1.0",

0 commit comments

Comments
 (0)