Git Product home page Git Product logo

ans-node-sdk's People

Contributors

omgmountain avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

johnsafe sayi21cn

ans-node-sdk's Issues

部署时提示Error: Cannot find module 'sync-request'

如题
internal/modules/cjs/loader.js:800
throw err;
^

Error: Cannot find module 'sync-request'
Require stack:

  • /[目录]/node_modules/_ans-node-sdk@4.0.6@ans-node-sdk/sdk/AnalysysAgent_NodeJS_SDK.cjs.js
  • /[目录]/helpers/fzAnalysys_helper.js
  • /[目录]/helpers/mall_helper.js
  • /[目录]/controllers/gitchat/column_controller.js
  • /[目录]/routes/index.js
  • /[目录]/app.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/[目录]/node_modules/_ans-node-sdk@4.0.6@ans-node-sdk/sdk/AnalysysAgent_NodeJS_SDK.cjs.js:5:31)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/[目录]/helpers/fzAnalysys_helper.js:4:21)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/[目录]/node_modules/_ans-node-sdk@4.0.6@ans-node-sdk/sdk/AnalysysAgent_NodeJS_SDK.cjs.js',
    '/[目录]/helpers/fzAnalysys_helper.js',
    '/[目录]/helpers/mall_helper.js',
    '/[目录]/controllers/gitchat/column_controller.js',
    '/[目录]/routes/index.js',
    '/[目录]/app.js'
    ]
    }
    上线失败了,故回滚。错误日志如上👆。
    看了下最新的commit,依赖由request改为了sync-request,在package.json中把依赖写到了devDependencies里。
    而部署生产环境时不会安装decDependencies,导致服务没起来。
    忘纠正啊哈。

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.