Skip to content

How to install dependency in /src #6126

Answered by SamTV12345
vodkaslime asked this question in Q&A
Discussion options

You must be logged in to vote

Hi folks, wondering how to just install a dependency library in /src in etherpad-lite.

My current working environment is Ubuntu with node@21.1.0 and npm@10.2.0.

Let's say I want to hack and play a bit with etherpad-lite, so I intend to install marked to /src. Typically to install an npm package, we just do npm install marked, right? However, after installing with this, the package.json.lock is then upgraded to version 3, which cannot be verified by ehterpad-lite installation, as mentioned at #6072.

So I manually reverted my working environment back to npm@5, but encountered more problems: marked requires higher version of node, rather than the ancient version of node@10 shipped with npm@…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SamTV12345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants