Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

template/projects miss .env file #3

Open
TokenxyWZY opened this issue Feb 22, 2019 · 2 comments
Open

template/projects miss .env file #3

TokenxyWZY opened this issue Feb 22, 2019 · 2 comments

Comments

@TokenxyWZY
Copy link

{ Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/.env'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/.env' }
/usr/local/lib/node_modules/create-truffle-dapp/createTruffleDapp.js:162
buf = buf.replace(/mnemonic_placeholder/g, answers.mnemonic);
^

TypeError: Cannot read property 'replace' of undefined
at ReadFileContext.fs.readFile [as callback] (/usr/local/lib/node_modules/create-truffle-dapp/createTruffleDapp.js:162:19)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)

@clemlak
Copy link
Owner

clemlak commented Apr 27, 2019

Hey! Can you explain me the context of this issue? What were you trying to do? Create a new project?

@antwal
Copy link

antwal commented Dec 18, 2019

same problem

Welcome to create-truffle-dapp!

? Do you want to set an Infura project ID? No
? Do you want to set a mnemonic? No
? Do you want to create a default configuration file for a Solidity linter? Solium

Creating test4 in /Users/antwal/Projects/dApp-test...

[Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/.env'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/.env'
}
[Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/.gitignore'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/.gitignore'
}
[Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/truffle.js'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/truffle.js'
}
[Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/package.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/local/lib/node_modules/create-truffle-dapp/templates/project/package.json'
}
/usr/local/lib/node_modules/create-truffle-dapp/createTruffleDapp.js:208
      const buf = data.replace(/_project_placeholder_/g, projectName);
                       ^

TypeError: Cannot read property 'replace' of undefined
    at ReadFileContext.callback (/usr/local/lib/node_modules/create-truffle-dapp/createTruffleDapp.js:208:24)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:239:13)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants