Skip to content

Commit

Permalink
fix: npm incorrect version installation
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsartem committed Oct 6, 2022
1 parent da287e2 commit 0084729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ export const ensureNpmDependency = async ({
} catch {
try {
await execPromise(
`npm i ${nameAndVersion} ${unparseFlags(
`npm i ${name}@${version} ${unparseFlags(
{
prefix: dependencyPath,
},
commandObj
)}`,
isSpinnerVisible
? `Installing ${nameAndVersion} to ${replaceHomeDir(npmDirPath)}`
? `Installing ${name}@${version} to ${replaceHomeDir(npmDirPath)}`
: undefined
);
} catch (error) {
Expand Down

0 comments on commit 0084729

Please sign in to comment.