Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #68 from zowe/fix/67
Browse files Browse the repository at this point in the history
Fix/67
  • Loading branch information
Christopher Wright authored Oct 17, 2018
2 parents 83e3cad + 503f6ab commit 462f4ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe("PMF: Install Interface", () => {
*/
const wasExecSyncCallValid = (expectedPackage: string, expectedRegistry: string) => {
expect(mocks.execSync).toHaveBeenCalledWith(
`npm install "${expectedPackage}" --prefix ${PMFConstants.instance.PLUGIN_INSTALL_LOCATION} -g --registry ${expectedRegistry}`,
`npm install "${expectedPackage}" --prefix "${PMFConstants.instance.PLUGIN_INSTALL_LOCATION}" -g --registry "${expectedRegistry}"`,
{
cwd : PMFConstants.instance.PMF_ROOT,
stdio: ["pipe", "pipe", process.stderr]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export function install(packageLocation: string, registry: string, installFromFi
// some form of a half-assed progress bar. This progress bar doesn't have any
// formatting or colors but at least I can get the output of stdout right.
iConsole.info("Installing packages...this may take some time.");
const execOutput = execSync(`npm install "${npmPackage}" --prefix ${PMFConstants.instance.PLUGIN_INSTALL_LOCATION} ` +
`-g --registry ${registry}`, {
const execOutput = execSync(`npm install "${npmPackage}" --prefix "${PMFConstants.instance.PLUGIN_INSTALL_LOCATION}" ` +
`-g --registry "${registry}"`, {
cwd: PMFConstants.instance.PMF_ROOT,
stdio: pipe
});
Expand Down

0 comments on commit 462f4ef

Please sign in to comment.