Comments on: Using NPM Packages for ArangoDB: Enhance Functionality | 2013 https://arangodb.com/2013/02/using-npm-packages-for-arangodb/ The database for graph and beyond Tue, 25 Jun 2024 10:30:48 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Lucas Dohmen https://arangodb.com/2013/02/using-npm-packages-for-arangodb/#comment-1046 Thu, 09 Jan 2014 21:40:00 +0000 http://www.arangodb.com/?p=1738#comment-1046 In reply to Alan Plum.

Absolutely. Created a ticket for it here: https://github.com/triAGENS/ArangoDB/issues/728

]]>
By: Alan Plum https://arangodb.com/2013/02/using-npm-packages-for-arangodb/#comment-1045 Thu, 09 Jan 2014 16:17:00 +0000 http://www.arangodb.com/?p=1738#comment-1045 In reply to fceller.

This would actually be a great feature. I think the most important use case for npm in arangodb is using it with Foxx, so separate Foxx apps should be able to use different versions of the same npm packages.

]]>
By: fceller https://arangodb.com/2013/02/using-npm-packages-for-arangodb/#comment-1044 Sun, 29 Dec 2013 12:50:00 +0000 http://www.arangodb.com/?p=1738#comment-1044 In reply to heaven78.

Currently you have to install the npm package inside the global “npm” directory.

However, it is a good point. If possible we should allow npm packages inside the foxx-app as well.

]]>
By: heaven78 https://arangodb.com/2013/02/using-npm-packages-for-arangodb/#comment-1043 Sat, 28 Dec 2013 18:15:00 +0000 http://www.arangodb.com/?p=1738#comment-1043 hi frank,
first merry x-mas!

how to implement other packages within a foxx-app? i tried this:

new folder inside foxx-app:
in lib/node_modules/: npm install passport

then in app.js:
passport = require(‘./lib/node_modules/passport’)

but arango ‘ cannot locate module ‘./lib/node_modules/passport’ for package ‘application”…

how do i have to set the folder structure inside the foxx (package root path) to proper require another package?

thanx a lot

]]>