Comments (3)
Attempt to execute the npm command or add a dependency
npm install unit-http
from unit.
That executes successfully:
user@debian:~/repos/expressunit$ npm install unit-http
changed 1 package, and audited 66 packages in 985ms
12 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
package.json
{
"dependencies": {
"express": "^4.19.2",
"unit-http": "^1.32.1"
},
"name": "expressunit",
"version": "1.0.0",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": ""
}
I attempted a few different combinations on my Debian 12 OS (not the live OS as above, which ws just for a clean repro), all of which still give the same error as shown in my first post, when applying the config:
- without linking at all:
- take back app ownership as user
- remove global unit-http install:
sudo npm -g uninstall unit-http
rm -rf node_modules package-lock.json
npm install express unit-http
- chown app unit:unit
- apply config
- global install, local install, no link:
- redo
sudo npm install -g --unsafe-perm unit-http
- take back app ownership as user
rm -rf node_modules package-lock.json
npm install express unit-http
- chown app unit:unit
- apply config
- redo
- global install, local install, then link:
- with unit-http still available as global dependency
- take back app ownership as user
rm -rf node_modules package-lock.json
npm install express unit-http
sudo npm link unit-http
- chown app unit:unit
- apply config
- global install, link, then local install:
- with unit-http still available as global dependency
- take back app ownership as user
sudo npm link unit-http
npm install express unit-http
- chown app unit:unit
- apply config
from unit.
Check whether the working_directory
configured in the unit is the application root directory?
Or enter the container and execute the command node -e 'require('unit-http/loader')'
from unit.
Related Issues (20)
- nodejs: Need to be compatible with non-utf8 text responses
- Couldn't connect to server after install on Ubuntu HOT 1
- I get 503 error with Images and CSS files HOT 6
- unit affects the performance of Node.js operations with Redis HOT 1
- unitctl not installed with `brew install nginx/unit/unit` on macOS HOT 3
- NGINX UNIT "PHP" application is not supported on RHEL 9
- Unit not starting WAR File HOT 2
- Badge colors don't match NGINX colors
- nginx unit php server stops responding when using supervisor HOT 2
- BUG: Environment Variables not passed to Wasm Applications HOT 4
- Error 503, PHP HOT 8
- [Feature Request] Basic Authentication for Control Socket HOT 3
- CLI: subcommand for saving configuration HOT 3
- CLI: deploy configuration to many instances HOT 3
- CLI: SSH Support HOT 4
- Unit is not compiled with php, njs and wasm-wasi-component HOT 5
- Node.js: Unable to run due to Server this.on is not a function HOT 4
- "Waiting for Server Response" time consistently different depending on POST DATA Length? HOT 9
- http2 on; doesnt work as expected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unit.