TLDWrite icon indicating copy to clipboard operation
TLDWrite copied to clipboard

Better instructions?

Open chaoscreater opened this issue 1 year ago • 0 comments

Could you please update the instructions? For example, there is no index.js in the server directory and so I can do npm install in there.

I ran npm start from the client folder and it seems to be starting the server, so I'm a bit confused about why there's an instruction for running npm i in the server folder.

Anyway, this is the error I got:

Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\react-scripts\scripts\start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\NormalModule.js:417:16)
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\NormalModule.js:452:10
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\webpack\lib\NormalModule.js:323:13
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at C:\Users\Ricky\1. Github Projects\TLDWrite\client\node_modules\babel-loader\lib\index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

I had to add this to the package.json in order to fix the issue (this is on Windows btw):

"start": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts start"

source: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

And now I'm getting this:

image

Also, it seems that this requires Python v3.9 and not anything higher. The total size of the Python project folder is about 7.16GB and that's a bit ridiculous considering what other projects can achieve with less size.

chaoscreater avatar Jul 12 '23 07:07 chaoscreater