Comments (15)
What doesn't work exactly? Can you share the error message?
from obs-web.
Sorry, I should have included that. Here it is... I donwnload the latest build and just run npm ci and this is what I get. I get farther of I download the latest master code but I still can't get that to work either.
root@stream-2023:/home/obs-web-gh-pages# npm -v
8.5.1
root@stream-2023:/home/obs-web-gh-pages# npm ci
npm ERR! The npm ci
command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-03-01T15_22_13_339Z-debug-0.log
from obs-web.
That's because you downloaded the master ZIP of the pre-built website: https://github.com/Niek/obs-web/archive/gh-pages.zip
If you want to build the code yourself, download the ZIP of the source code instead: https://github.com/Niek/obs-web/archive/refs/heads/master.zip
from obs-web.
Ok, but then I get this error on the second step when I run npm run dev
root@stream-2023:/home/obs-web-master# npm run dev
[email protected] dev
rollup -c -w --bundleConfigAsCjs
internal/modules/cjs/loader.js:818
throw err;
^
Error: Cannot find module 'node:process'
Require stack:
- /home/obs-web-master/node_modules/rollup/dist/bin/rollup
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Module. (/home/obs-web-master/node_modules/rollup/dist/bin/rollup:16:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/obs-web-master/node_modules/rollup/dist/bin/rollup' ]
}
from obs-web.
Then your node version is very old, make sure to run at least the latest LTS (Node 18).
from obs-web.
ok, I appreciate your patience. I think I updated to the latest and now I get this:
root@stream-2023:/home/obs-web-master# ls
Dockerfile README.md package-lock.json public src
LICENSE node_modules package.json rollup.config.js
root@stream-2023:/home/obs-web-master# npm run dev
node:internal/modules/cjs/loader:1090
const err = new Error(message);
^
Error: Cannot find module 'semver'
Require stack:
- /usr/share/nodejs/npm/lib/utils/unsupported.js
- /usr/share/nodejs/npm/lib/cli.js
- /usr/share/nodejs/npm/bin/npm-cli.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
at Module._load (node:internal/modules/cjs/loader:934:27)
at Module.require (node:internal/modules/cjs/loader:1157:19)
at require (node:internal/modules/helpers:119:18)
at Object. (/usr/share/nodejs/npm/lib/utils/unsupported.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Module.require (node:internal/modules/cjs/loader:1157:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/share/nodejs/npm/lib/utils/unsupported.js',
'/usr/share/nodejs/npm/lib/cli.js',
'/usr/share/nodejs/npm/bin/npm-cli.js'
]
}
Node.js v19.7.0
root@stream-2023:/home/obs-web-master#
from obs-web.
Make sure to run npm ci
first.
from obs-web.
Whats weird is at the bottom it says node.js v19.7.0 but when I type node -v it still reports v12.22.9
from obs-web.
Then your npm
is using a different node
version that your CLI, make sure your $PATH
is correct - maybe restart your terminal.
from obs-web.
ok - making progress. I rebooted and I see v19.7.0. Now when I run npm ci I get this... Seems to be dying. Is my node version too new?
root@stream-2023:/home/obs-web-master# npm ci
(#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠧ reify:fsevents: sill reify mark deleted [ '/home/obs-web
Killed
root@stream-2023:/home/obs-web-master#
root@stream-2023:/home/obs-web-master#
root@stream-2023:/home/obs-web-master#
root@stream-2023:/home/obs-web-master#
root@stream-2023:/home/obs-web-master# npm ci
Killed####⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠧ reify:fsevents: sill reify mark deleted [ '/home/obs-web-master/node_modules/fsevents' ]
from obs-web.
You have a messed up setup :) Try nuking node_modules
and restarting. I can't really help you further with this as it's not related to obs-web.
from obs-web.
Gotcha, OK - I'll build a new server from scratch and redo this. I thought I did it yesterday but I'll work this out. Thank you for your help.
from obs-web.
I ended up getting it to build. Thank you again for your help! One question though. On the main page it says download the latest build from here: https://github.com/Niek/obs-web/archive/gh-pages.zip. You gave me the link https://github.com/Niek/obs-web/archive/refs/heads/master.zip.
Should this be updated?
from obs-web.
No, the ZIP is to the pre-built HTML, and you are looking for the latest source - those are two different things.
from obs-web.
Ok, thanks.
from obs-web.
Related Issues (20)
- Switching Collections doesn't update scenes HOT 3
- Webp Image Compression? HOT 2
- [Feature Reqest] UI component to Toggle Show/Hide for sources on active scene HOT 2
- Grammar on readme HOT 1
- [Feature Reqest] Show Scene On Top - URL String HOT 2
- [Feature Request] Replay buffer save trigger/notification HOT 3
- [Feature Request] Specify password in URL HOT 3
- Is it possible to see the audio mixer with realtime level and slider control? HOT 11
- will not work HOT 1
- The program preview error HOT 4
- Is it possible to adjust or control the sound audio of the scene in the same way as the web_remote_for_OBS? HOT 1
- [Feature Request] Save Replay Button
- Feature request - dynamic scene previews HOT 1
- Documentation HOT 3
- [Feature Request] Show Timeline for Videos
- [Feature Request] Audio Volume Control HOT 3
- Web Buttons / Sandwich Broken HOT 1
- Request: obs-websocket command? HOT 4
- [Feature request] Add replay buffer button 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 obs-web.