Skip to content

Commit

Permalink
fix: husky installation failed
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Jan 9, 2021
1 parent 4f2e60a commit 18b03a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ class Creator {

const git = simplegit(this.dir)

console.log('Install dependencies')
execSync('npm install --silent', { cwd: this.dir, stdio: 'inherit' })
try {
console.log('Setup git repository')
await git.init()
Expand All @@ -82,7 +80,8 @@ class Creator {
console.log('Skipped git commit due to missing username and email in git config.')
console.log('You will need to perform the initial commit yourself.')
}
console.log('')
console.log('Install dependencies')
execSync('npm install --silent', { cwd: this.dir, stdio: 'inherit' })
console.log(`Successfully created project ${chalk.yellow(this.name)}.`)
console.log(`Get started with the following commands:\n`)
if (this.dir !== process.cwd()) {
Expand All @@ -101,6 +100,7 @@ class Creator {
const file = await this.download()
const prefix = `${TEMPLATE_REPO_NAME}-master/`

console.log(file, this.dir)
await decompress(file, this.dir, {
map: (file) => {
file.path = file.path.substr(prefix.length)
Expand Down

0 comments on commit 18b03a9

Please sign in to comment.