I want to add this library to my local project, I don't want to install npm.
Can I just add the library to my project manually? if yes how?.
I have small experience with javascript, I just want to do a simple project.
Asked
Active
Viewed 81 times
-1

MoonX App
- 97
- 5
-
2Why don't you want to install npm? – skara9 Nov 27 '21 at 01:16
1 Answers
0
I think all you need to do is download the js file from the lib
https://github.com/komagata/textarea-markdown/tree/master/lib directory and include it as a script take in your project: <script src="path/to/js.js"></script>

stWrong
- 334
- 2
- 14
-
-
1@MoonXApp Are you getting any console errors. I see that in `package.json` 2 dependencies are required: "dependencies": { "markdown-it": "^8.4.0", "whatwg-fetch": "^2.0.3" }, – stWrong Nov 27 '21 at 01:14
-
Yes, ReferenceError: exports is not defined, so I must download the dependencies or what? – MoonX App Nov 27 '21 at 01:17
-
Yes you need to go fetch the dependencies too. For urls, go to npmjs.org and search for those packages. Alternatively, install npm in your machine or a VM and download the files and then copy paste them to your project – stWrong Nov 27 '21 at 05:41
-