[ 
https://issues.apache.org/jira/browse/THRIFT-5029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103928#comment-17103928
 ] 

Mario Emmenlauer commented on THRIFT-5029:
------------------------------------------

I'm very sorry but I'm under the impression that this issue has been reported 
multiple times. Can you check if the following description and workaround help 
you? 
[https://stackoverflow.com/questions/61475375/thrift-npm-instalation-fails/61676953#61676953]

See also the linked related issues.

I'm sorry that the issue has not been fixed yet. It seems the maintainer of the 
official thrift npm package "vanished" and has not yet taken care of the 
problem.

> Latest (0.13.0) Node.js lib does not provide entry point
> --------------------------------------------------------
>
>                 Key: THRIFT-5029
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5029
>             Project: Thrift
>          Issue Type: Bug
>          Components: Node.js - Library
>            Reporter: Anton Golub
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The latest published `thrift` version:
> * does not contain 'index.js' at the package root
> * has no "main" entry point in package.json
> So module request throws an exception:
> {code:java}
> require('thrift')
> Thrown:
> Error: Cannot find module 'thrift'
> Require stack:
> - <repl>
>     at Function.Module._resolveFilename 
> (internal/modules/cjs/loader.js:625:15)
>     at Function.Module._load (internal/modules/cjs/loader.js:527:27)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to