浏览代码

Fixed installer issues

master
anish 3 年前
父节点
当前提交
c00ab8aa0b
共有 1 个文件被更改,包括 8 次插入7 次删除
  1. 8
    7
      index.js

+ 8
- 7
index.js 查看文件

@@ -756,8 +756,9 @@ var op = {
gitRepos.push('client/server');
gitRepos = gitRepos.concat(elevatedRunasRepos);

// gitRepos = ['bbhverse', 'serververse', 'elixir-server'
// , 'client'
// gitRepos = [
// 'bbhverse', 'serververse', 'elixir-server',
// 'client'
// ];
var rmtasks = []
var repotasks = []
@@ -783,7 +784,7 @@ var op = {
repotasks.push(
() => {
console.log(`--------------------npm i for ${repo}--------------------`)
var p = nodeShellExec('npm', ['i --force'], {
var p = nodeShellExec('npm', ['i', '--force'], {
inherit: true, shell: true
, cwd: instanceroot + '/' + repo
, env: process.env
@@ -800,21 +801,21 @@ var op = {
// repotasks.push(
// () => {
// console.log(`--------------------second time npm i for client--------------------`)
// var p = nodeShellExec('npm', ['i --force'], {
// return nodeShellExec(`"${gitbash}"`, ['-c', '"npm i"'], {
// // return nodeShellExec('npm', ['i --force'], {
// inherit: true, shell: true
// , cwd: instanceroot + '/' + 'client'
// , env: process.env
// , title: `npm i for client`
// }).then(Tasq.then).catch(Tasq.catch)
// return p;
// })

var bowerRepos = ['client']
bowerRepos.forEach(repo => {
repotasks.push(() => {
console.log(instanceroot + '/' + repo + '/node_modules/bower/bin/bower')
var p = nodeShellExec('node_modules/bower/bin/bower', ['install'], {
// var p = nodeShellExec(`"${gitbash}"`, ['-c', '"node_modules/bower/bin/bower i"'], {
// var p = nodeShellExec('node_modules/bower/bin/bower', ['install'], {
var p = nodeShellExec(`"${gitbash}"`, ['-c', '"node_modules/bower/bin/bower i"'], {

inherit: true, shell: true
, cwd: instanceroot + '/' + repo

正在加载...
取消
保存