diff --git a/packages/create-nx-workspace/bin/create-nx-workspace.ts b/packages/create-nx-workspace/bin/create-nx-workspace.ts index 84095d4938644..e4870e8605800 100644 --- a/packages/create-nx-workspace/bin/create-nx-workspace.ts +++ b/packages/create-nx-workspace/bin/create-nx-workspace.ts @@ -81,7 +81,7 @@ const args = process.argv console.log(`ng new ${args} --collection=${nxTool.packageName}`); execSync( `${path.join( - tmpDir, + `"${tmpDir}"`, 'node_modules', '.bin', 'ng' diff --git a/packages/schematics/bin/create-nx-workspace.ts b/packages/schematics/bin/create-nx-workspace.ts index 84095d4938644..e4870e8605800 100644 --- a/packages/schematics/bin/create-nx-workspace.ts +++ b/packages/schematics/bin/create-nx-workspace.ts @@ -81,7 +81,7 @@ const args = process.argv console.log(`ng new ${args} --collection=${nxTool.packageName}`); execSync( `${path.join( - tmpDir, + `"${tmpDir}"`, 'node_modules', '.bin', 'ng'