Skip to content

Commit

Permalink
chore: undocument npm install -g (#3314)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Sep 7, 2023
1 parent 8a44cfd commit 8c53af6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@ cd my-new-app
npm start
```

Alternatively (less recommended):

```bash
npm install -g @electron-forge/cli
electron-forge init my-new-app
cd my-new-app
npm start
```

For more information on creating a new project from a template, [see our CLI documentation](https://www.electronforge.io/cli).

# Docs and Usage
Expand Down
2 changes: 1 addition & 1 deletion packages/api/core/src/api/init-scripts/find-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const findTemplate = async (dir: string, template: string): Promise<Forge
}
}
if (!foundTemplate) {
throw new Error(`Failed to locate custom template: "${template}"\n\nTry \`npm install -g @electron-forge/template-${template}\``);
throw new Error(`Failed to locate custom template: "${template}".`);
}

d(`found template module at: ${templateModulePath}`);
Expand Down

0 comments on commit 8c53af6

Please sign in to comment.