Giter VIP home page Giter VIP logo

Comments (8)

giga-a avatar giga-a commented on July 17, 2024

Hey, try deleting package-lock.json, then do npm install inside social analyzer folder.

rm -rf package-lock.json node_modules
npm install lodash
npm install
npm start

from social-analyzer.

kodegeek-test avatar kodegeek-test commented on July 17, 2024

Hello,

It makes no difference. Same error:

[xxx@mac-pro-1-1 social-analyzer]$ npm start

> [email protected] start /home/xxx/social-analyzer
> node server.js

internal/modules/cjs/loader.js:628
  throw e;
  ^

Error: No valid exports main found for '/home/xxx/social-analyzer/node_modules/klona'
    at resolveExportsTarget (internal/modules/cjs/loader.js:625:9)
    at applyExports (internal/modules/cjs/loader.js:502:14)
    at resolveExports (internal/modules/cjs/loader.js:551:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:657:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:960:27)
    at Function.Module._load (internal/modules/cjs/loader.js:855:27)
    at Module.require (internal/modules/cjs/loader.js:1033:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/josevnz/social-analyzer/node_modules/sanitize-html/index.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1144:30) {
  code: 'MODULE_NOT_FOUND'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/xxx/.npm/_logs/2020-12-26T12_45_33_489Z-debug.log

Thanks for looking into this. It is a bummer that I cannot pass from the installation stage.

from social-analyzer.

giga-a avatar giga-a commented on July 17, 2024

Alright, would you be able to tell me what node and npm versions do you have?

node -v
npm -v

from social-analyzer.

kodegeek-test avatar kodegeek-test commented on July 17, 2024

Sure:

[xxx@mac-pro-1-1 social-analyzer]$ node -v
v13.6.0
[xxx@mac-pro-1-1 social-analyzer]$ npm -v
6.13.4

from social-analyzer.

giga-a avatar giga-a commented on July 17, 2024

Hey, I ran a custom test on my testing system and failed, would you be able to update Node JS to the newer one v15 or v14.15.1?

[Custom Test Failed - Node JS v13.6.0] -> edec3be9-43b7-4fe5-8e06-796032e1507e

> [email protected] start /usr/src/app
> node server.js

internal/modules/cjs/loader.js:628
  throw e;
  ^

Error: No valid exports main found for '/usr/src/app/node_modules/klona'
    at resolveExportsTarget (internal/modules/cjs/loader.js:625:9)
    at applyExports (internal/modules/cjs/loader.js:502:14)
    at resolveExports (internal/modules/cjs/loader.js:551:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:657:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:960:27)
    at Function.Module._load (internal/modules/cjs/loader.js:855:27)
    at Module.require (internal/modules/cjs/loader.js:1033:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/usr/src/app/node_modules/sanitize-html/index.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1144:30) {
  code: 'MODULE_NOT_FOUND'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from social-analyzer.

giga-a avatar giga-a commented on July 17, 2024

Did it work?

from social-analyzer.

kodegeek-test avatar kodegeek-test commented on July 17, 2024

That worked better, I upgraded node to the latest and greatest:

[xxx@mac-pro-1-1 ~]$ npm -v
7.3.0
[xxx@mac-pro-1-1 ~]$ node -v
v15.5.0

[xxx@mac-pro-1-1 social-analyzer]$ npm start

> [email protected] start
> node server.js

Server started at http://localhost:9005/app.html

I tried a basic search (slow user) and I got several errors in the console:

Server started at http://localhost:9005/app.html
Command failed: tesseract "/tmp/tmp-7013-cYDHxeZ8agVc" stdout -l eng --oem 1 --psm 3
Error in fopenReadStream: file not found
Error in findFileFormat: image file not found
Error during processing.

Total time 73616

I tried several well known profiles and I could not get a positive URL, probably because the error above.

I'm closing this issue, I'll wait until version 2.0 gets out.

In any case, thanks for your efforts, looks promising.

from social-analyzer.

giga-a avatar giga-a commented on July 17, 2024

Glad to know that it's finally working for you!

The second issue is related to tesseract parsing an empty file, I will take a look at it later on..

from social-analyzer.

Related Issues (20)

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.