Skip to content

Commit

Permalink
re-re-fixed custom npm path detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jul 5, 2017
1 parent c087a96 commit a6f7f7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terminus-plugin-manager/src/services/pluginManager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export class PluginManagerService {

async detectPath () {
this.npmPath = this.config.store.npm
if (await fs.exists(this.npmPath)) {
return
}
if (this.hostApp.platform !== Platform.Windows) {
let searchPaths = (await exec('bash -c -l "echo $PATH"'))[0].toString().trim().split(':')
for (let searchPath of searchPaths) {
Expand Down

0 comments on commit a6f7f7a

Please sign in to comment.