Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for nodester/nodester#390

  • Loading branch information...
commit b4173de7631c3f206b8c8fc5cf604a18a708d128 1 parent 58799e3
@alejandro alejandro authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/npm.js
View
4 lib/npm.js
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.