I have a nodejs project, and a dependency:
Usually i used package.json for manage my dependencies, but jsPDF isnt in npm, can i download it from github directly in package.json?
You can specify the repository as username/repo
or use a full URL such as
git://github.com/user/project.git
So in your case it'd be
"dependencies": {
"jsPDF": "MrRio/jsPDF"
}
Also jsPDF is a client-side dependency. Meaning it won't work in Node.js and will only work in the browser, which is why it isn't in NPM, because it's not a Node.js module.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.