Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Run install with force win32 #47

Merged
merged 5 commits into from
Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/commands/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as execa from 'execa';
import * as glob from 'fast-glob';
import * as fs from 'fs';
import * as Listr from 'listr';
import { platform } from 'os';
import * as path from 'path';
import * as rm from 'rimraf';

Expand Down Expand Up @@ -103,9 +104,9 @@ export default class Package extends Command {
title: 'Install productive dependencies',
enabled: () => !flags.skipInstall,
task: async () =>
execa('npm', ['install', '--production', '--prefix', outputDir], { stdio: flags.verbose ? 'inherit' : 'ignore' }).catch(e =>
this.error(e, { exit: 10 })
)
execa('npm', ['install', '--production', `--prefix=${outputDir}`, ...(platform() === 'win32' ? ['--force'] : [])], {
stdio: flags.verbose ? 'inherit' : 'ignore'
}).catch(e => this.error(e, { exit: 10 }))
}
]);

Expand Down