Giter VIP home page Giter VIP logo

Comments (5)

shenfu1991 avatar shenfu1991 commented on June 12, 2024

用build方式也报错了:

FO  Starting development server...
10% building 2/5 modules 3 active ...ream/node_modules/eslint-loader/index.js??ref--14-0!/root/chatgpt-stream/src/main.jsError: 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 (/root/chatgpt-stream/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:471:10)
    at /root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:503:5
    at /root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:358:12
    at /root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array. (/root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/root/chatgpt-stream/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /root/chatgpt-stream/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

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 (/root/chatgpt-stream/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:471:10)
    at /root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:503:5
    at /root/chatgpt-stream/node_modules/webpack/lib/NormalModule.js:358:12
    at /root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array. (/root/chatgpt-stream/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/root/chatgpt-stream/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /root/chatgpt-stream/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at /root/chatgpt-stream/node_modules/graceful-fs/graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.14.2

from chatgpt-stream.

cookeem avatar cookeem commented on June 12, 2024

对于高版本的npm,出现ERR_OSSL_EVP_UNSUPPORTED 这个错误请调整构建命令为:

export NODE_OPTIONS=--openssl-legacy-provider && npm run build

from chatgpt-stream.

cookeem avatar cookeem commented on June 12, 2024

运行chatgpt-stream需要先运行后端服务chatgpt-service

from chatgpt-stream.

shenfu1991 avatar shenfu1991 commented on June 12, 2024

@cookeem 感谢,mac下成功运行,不过好像这个不是连续对话,还有就是发送成功后最好把输入框内容清空了。🙏

from chatgpt-stream.

cookeem avatar cookeem commented on June 12, 2024

现在支持上下文对话了

from chatgpt-stream.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.