Skip to content

Commit

Permalink
chore: install log4js manually (on Node 0.10)
Browse files Browse the repository at this point in the history
Workaround for https://github.com/isaacs/npm/issues/3305

This is cherry-picked commit from stable branch (707684b)

Conflicts:
	package.json
  • Loading branch information
vojtajina committed Apr 2, 2013
1 parent ee7ca20 commit f03e94d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install-log4js.js
@@ -0,0 +1,7 @@
// workaround hack for https://github.com/isaacs/npm/issues/3305

var spawn = require('child_process').spawn;

if (/0\.10/.test(process.versions.node)) {
spawn('npm', ['install', 'log4js@0.6.1'], {stdio: 'inherit'});
}
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -116,5 +116,8 @@
"engines": {
"node": "~0.8 || ~0.10"
},
"scripts": {
"install": "node install-log4js.js"
},
"version": "0.9.0"
}

0 comments on commit f03e94d

Please sign in to comment.