Skip to content

Commit f4f03ea

Browse files
authored
Fix bug with various version of npm
Update install function to use the bit install function. teambit/bit#1856 (comment)
1 parent 05701ed commit f4f03ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/compilers/ng-packagr/ng-packagr.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const compile = async (_files, distPath, api) => {
2727
const context = await createContext(res, directory, distPath)
2828

2929
if (!~context.dependencies.indexOf('@angular/core')) {
30-
await context.capsule.exec('npm i @angular/core')
30+
await res.installPackages(['@angular/core'])
3131
}
3232

3333
await adjustFileSystem(context)
@@ -194,4 +194,4 @@ function getCustomDependencies(dir) {
194194
return Object.keys(require(`${dir}/package.json`).dependencies || {})
195195
}
196196

197-
export default { compile }
197+
export default { compile }

0 commit comments

Comments
 (0)