how to browserify a node-js module?

Unknown file type in nodejs app on smartos?

  • In an attempt to get my nodejs app running on SmartOS, some of my modules are failing when the app attempts to start. Specifically, the module that fails is a module that is built with node-gyp. I actually can't get the module to even build on the machine due to an encrypted make exited with error 2message, so I scp'd it from my local box. Anyway, once the app begins to start I get "this" error Error: http://ld.so.1: node: fatal: /root/path/to/node_modules/file.node: unknown file type Any ideas? Thanks in advance.

  • Answer:

    If you're looking for ideas only, I have one. Your linker or something is telling you that something from node_modules isn't a valid file type. I'd say it's either asking for a module not built correctly (gyp on SmartOS, how does that work?), or that it's trying to link a _javascript_ file into some binary. What file type is that file at all?

Zlatko Đurić at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.