Search code examples
node.jsnpmnodejitsu

Can I npm link on a nodejitsu instance?


I'm trying to use a lib that I need to install and then link with npm. I don't see any clear path for me to access my server this way using the jitsu cli. How would I go about doing this?


Solution

  • I work for nodejitsu.

    First, I believe your problem can be solved by using bundledDependencies in your package.json like so:

    {
      "bundledDependencies": [ "myModule", "myFork" ]
    }
    

    Then, when jitsu bundles your app for deployment (which uses npm), it will also bundle your dependency with it.

    If the package is on a personal fork of a project on github, npm also can pull directly from a git url. Check out http://npmjs.org/doc/ for more information on ways to pull npm modules from non-registry sources.

    Also: We have a dedicated support team which can be contacted either through [email protected] or at #nodejitsu on irc.freenode.net .