File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ var jsonfile = require('jsonfile'),
99
1010frame . state = { } ;
1111
12+ /**
13+ * Load the current frate state from disk.
14+ * @return {Promise }
15+ */
1216frame . load = function ( ) {
1317 debug ( 'load' ) ;
1418 return new Promise ( function ( resolve , reject ) {
Original file line number Diff line number Diff line change @@ -101,8 +101,6 @@ pm.initPlugins = function(plugins, ofPluginApi) {
101101 *
102102 * Uses machine's npm as a child_process so that we don't have to depend on the npm package.
103103 *
104- * TODO: don't re-install plugins that are already present
105- *
106104 * @private
107105 *
108106 * @param {String } package_name NPM package name
@@ -112,7 +110,7 @@ pm.initPlugins = function(plugins, ofPluginApi) {
112110 */
113111function _installPlugin ( package_name , version , force ) {
114112 debug ( 'installPlugin' , package_name , version ) ;
115- var cmd = 'npm install ' + package_name ;
113+ var cmd = 'npm install -g ' + package_name ;
116114 if ( version ) {
117115 cmd += '@' + version ;
118116 }
@@ -173,7 +171,7 @@ pm.uninstallPlugin = _removePlugin;
173171 */
174172function _checkPlugin ( package_name , version ) {
175173 debug ( 'checkPlugin' , package_name , version ) ;
176- var cmd = 'npm list ' + package_name ;
174+ var cmd = 'npm list -g ' + package_name ;
177175 if ( version ) {
178176 cmd += '@' + version ;
179177 }
You can’t perform that action at this time.
0 commit comments