Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/node-package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ export class NodePackageManager implements INodePackageManager {
private getFlagsString(config: any, asArray: boolean) : any{
let array:Array<string> = [];
for(let flag in config) {
if(config[flag]) {
if (flag === "global") {
array.push(`--${flag}`);
array.push(`${config[flag]}`);
} else if(config[flag]) {
if(flag==="dist-tags" || flag==="versions") {
array.push(` ${flag}`);
continue;
Expand Down
2 changes: 1 addition & 1 deletion lib/services/doctor-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class DoctorService implements IDoctorService {
let spinner = new clui.Spinner("Installing iOS runtime.");
try {
spinner.start();
this.$npm.install("tns-ios", projDir, { "ignore-scripts": true, production: true, save: true}).wait();
this.$npm.install("tns-ios", projDir, { global: false, "ignore-scripts": true, production: true, save: true}).wait();
spinner.stop();
let iosDir = path.join(projDir, "node_modules", "tns-ios", "framework");
this.$fs.writeFile(
Expand Down