l00k / devphase

Development tool for Phala Phat contracts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn devphase init: no such file or directory: .gitignore

kvinwang opened this issue · comments

I was just following the instructions in README and got an error:

$ yarn devphase init
yarn run v1.22.19
warning package.json: No license field
$ /home/kvin/codes/chain/phala/play-contract/play-devphase/node_modules/.bin/devphase init
Couldn't find tsconfig.json. tsconfig-paths will be skipped
[Init] Initiation
[Initializer] Creating files
[Initializer] .gitignore
Error: ENOENT: no such file or directory, copyfile '/home/kvin/codes/chain/phala/play-contract/play-devphase/node_modules/devphase/templates/.gitignore' -> './.gitignore'
    at Object.copyFileSync (node:fs:2852:3)
    at Initializer.init (/home/kvin/codes/chain/phala/play-contract/play-devphase/node_modules/devphase/dist/cli/index.js:939:29)
    at async command (/home/kvin/codes/chain/phala/play-contract/play-devphase/node_modules/devphase/dist/cli/index.js:962:3) {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/home/kvin/codes/chain/phala/play-contract/play-devphase/node_modules/devphase/templates/.gitignore',
  dest: './.gitignore'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
commented

Thx fixed in ^0.0.19