Skip to content

Commit 4c259e4

Browse files
author
Fatme
authored
Merge pull request #3615 from NativeScript/fatme/fix-project-creation
Fix project creation
2 parents 65e41d1 + 4e4e6ab commit 4c259e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/project-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ export class ProjectService implements IProjectService {
7272
this.removeMergedDependencies(projectDir, templatePackageJsonData);
7373
}
7474

75-
const templatePackageJson = this.$fs.readJson(path.join(templatePath, constants.PACKAGE_JSON_FILE_NAME));
76-
7775
// Install devDependencies and execute all scripts:
7876
await this.$npm.install(projectDir, projectDir, {
7977
disableNpmInstall: false,
8078
frameworkPath: null,
8179
ignoreScripts
8280
});
8381

82+
const templatePackageJson = this.$fs.readJson(path.join(templatePath, constants.PACKAGE_JSON_FILE_NAME));
83+
8484
await this.$npm.uninstall(templatePackageJson.name, { save: true }, projectDir);
8585
if (templateVersion === constants.TemplateVersions.v2) {
8686
this.alterPackageJsonData(projectDir, appId);

0 commit comments

Comments
 (0)