Skip to content

Commit 19b5654

Browse files
authored
Fixed: Confusing report for a problem with CocoaPods during installation (#2409)
1 parent a5d42fa commit 19b5654

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/node-package-manager.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ export class NodePackageManager implements INodePackageManager {
126126
private getFlagsString(config: any, asArray: boolean) : any{
127127
let array:Array<string> = [];
128128
for(let flag in config) {
129-
if(config[flag]) {
129+
if (flag === "global") {
130+
array.push(`--${flag}`);
131+
array.push(`${config[flag]}`);
132+
} else if(config[flag]) {
130133
if(flag==="dist-tags" || flag==="versions") {
131134
array.push(` ${flag}`);
132135
continue;

lib/services/doctor-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class DoctorService implements IDoctorService {
187187
let spinner = new clui.Spinner("Installing iOS runtime.");
188188
try {
189189
spinner.start();
190-
this.$npm.install("tns-ios", projDir, { "ignore-scripts": true, production: true, save: true}).wait();
190+
this.$npm.install("tns-ios", projDir, { global: false, "ignore-scripts": true, production: true, save: true}).wait();
191191
spinner.stop();
192192
let iosDir = path.join(projDir, "node_modules", "tns-ios", "framework");
193193
this.$fs.writeFile(

0 commit comments

Comments
 (0)