I'm trying to set up a very simple Node.js app with the help of DirectAdmin on the shared hosting I'm using. I have problems running it because when I install dependencies using DirectAdmin's UI, they are installed not in the app's directory, as it's normally the case, but in the nodevenv directory (also not directly but in the <appname>/16/lib/node_modules. Then when app runs it doesn't know that dependencies are located in another directory and it crashes on startup. I don't know how can I set up my app so that it searches for node_modules in some other directory. I know about prefixes but I don't know how can I leverage those to direct the app to a proper directory.
Node dependencies installed outside of the app's directory
45 Views Asked by MrLoon At
0
There are 0 best solutions below
Related Questions in NODE-MODULES
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- How to fix npm errors without writing sudo in macOS?
- Are there any known issues with NPM or Node.js when creating a new app?
- Is there anybody who can help me in node.js authentication?
- Call function of JS object of a module from different module
- 'map-advanced-marker' component not found after upgrading @angular/google-maps
- Nx invalid symbol in nx.json
- changing the node version used by apache web server
- Gitlab pipeline stuck with nx cloud issue
- Getting Sub-dependencies in a pnpm Deployment Without Bundling
- When I use electron js and canvas in node js, I get a rebuild module error
- How can I change amount of payment-plan in flutterwave payment gateway?
- Runtime error by `babel/runtime-corejs3` importing `core-js-pure`
- Exporting function(s) does not make it available in other module
- How can I publish library from dist directory saving node_modules?
Related Questions in DIRECTADMIN
- directadmin nginx+apache webserver reverse proxy configuration for subdomain
- errors being displayed on my wordpress site even though i have set the value to off
- Setting up a Next.js application on DirectAdmin
- I want to upload my dist folder to Github and then sync it to my DirectAdmin deployment... How do I set it up?
- email send smtp error on direct admin server
- Passenger error #3 when installing django application in DirectAdmin host
- Make download speed limit for free file
- redirect url on shared server to node.js app
- Can I run a php file from the root folder of all domains?
- Install HTTP/2.0 using directadmin with letsencrypt on centos 7 server
- How to proxy pass DirectAdmin in shared hosting from nginx in VPS
- Website responds different after migration from directadmin to plesk
- Getting 404 Not Found error when refreshing dynamic page in DirectAdmin deployment
- How to create node.js app with directadmin api
- My function.php file keep being removed by itself, how can I find what removes it?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?