Permalink
Browse files

Fix for nodester/nodester#390

  • Loading branch information...
alejandro committed Jul 13, 2012
1 parent 58799e3 commit b4173de7631c3f206b8c8fc5cf604a18a708d128
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/npm.js
View
@@ -9,6 +9,7 @@
var fs = require('fs')
, path = require('path')
+ , semver = require('semver')
, Node = require('nodester-api').nodester
, exists = fs.existsSync || path.existsSync
, config = require('./config')
@@ -52,7 +53,8 @@ function install (args) {
} else {
p = [];
for (var dep in depen) {
- p.push(dep);
+ var version = depen[dep] || null;
+ p.push(dep + (version ? '@' + version : ''));
}
}
} else {

0 comments on commit b4173de

Please sign in to comment.