As per here npm install web3-eth-accounts should create a dist folder.
But i don't see any dist folder being created. Can someone please help me?
- 5,819
- 15
- 28
- 38
- 69
- 5
1 Answers
You need to build your project to get the dist folder, which contains the compiled code. So the npm run-script build-all will create the dist folder as it's mentioned in the link you referred.
To get a understanding about dist folder, you my refer here.
The shortform dist stands for distributable and refers to a directory where files will be stored that can be directly used by others without the need to compile or minify the source code that is being reused.
Example: If I want to use the source code of a Java library that someone wrote, then you need to compile the sources first to make use of it. But if a library author puts already the precompiled version into the repository, then you can just go ahead. Such an already compiled version is saved into the dist directory.
- 5,819
- 15
- 28
- 38
-
npm ERR! path /home/user/web3accounts3/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/home/user/web3accounts3/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR! /home/user/.npm/_logs/2017-09-26T20_13_48_288Z-debug.log
– AntiNatalist Sep 26 '17 at 20:18 -
1@AntiNatalist if the answer was any help please accept it, or provide your own answer. That's a good practice in SE community. – ETHER Jul 08 '18 at 07:19
npm ERR! A complete log of this run can be found in: npm ERR! /home/user/.npm/_logs/2017-09-26T20_13_48_288Z-debug.log
– AntiNatalist Sep 26 '17 at 20:16