[英]bower install gives “Package not found”
I downloaded a JavaScript project from github. 我从github下载了一个JavaScript项目。 The project is using bower to manage dependencies.
该项目正在使用bower来管理依赖项。
I installed NodeJS and then Bower using npm install bower
我使用
npm install bower
安装了NodeJS然后npm install bower
Bower
However, when I try to install all the dependencies using bower install
I get an error: ENOTFOUND Package gulp-concat not found
但是,当我尝试使用
bower install
安装所有依赖项时,我收到一个错误: ENOTFOUND Package gulp-concat not found
When I installed gulp-concat using npm install -g gulp-concat
I got another error while running bower install
: ENOTFOUND Package gulp-bower not found
当我使用安装一饮而尽,CONCAT
npm install -g gulp-concat
我在运行了另一个错误bower install
: ENOTFOUND Package gulp-bower not found
I could probably install each of the dependencies manually and then build the project. 我可以手动安装每个依赖项,然后构建项目。 However shouldn't
bower install
download and install all the dependencies for me 但是不应该为我
bower install
下载并安装所有依赖项
EDIT: Here is my bower.json: 编辑:这是我的bower.json:
{
"name": "PDFSign.js",
"version": "1.0.3",
"description": "PDFSign.js is a JavaScript library that signs a PDF in the browser.",
"authors": [
"Thomas Bocek"
],
"license": "MIT",
"main": [
"src/js/main.js"
],
"dependencies": {
"forge": "~0.6.38"
},
"devDependencies": {
"event-stream": "^3.3.2",
"gulp": "^3.9.0",
"gulp-bower": "0.0.11",
"gulp-clean": "^0.3.1",
"gulp-concat": "^2.6.0",
"gulp-filter": "^3.0.1",
"gulp-inject": "^3.0.0",
"gulp-install": "^0.6.0",
"gulp-rename": "^1.2.2",
"gulp-run": "^1.6.12",
"gulp-shell": "^0.5.1",
"jasmine-core": "^2.3.4",
"karma": "^0.13.15",
"karma-chrome-launcher": "^0.2.1",
"karma-jasmine": "^0.3.6",
"karma-junit-reporter": "^0.3.8",
"karma-requirejs": "^0.2.2",
"karma-spec-reporter": "0.0.22",
"main-bower-files": "^2.9.0"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
There is no package.json in my project 我的项目中没有package.json
I'm assuming you are trying to use https://github.com/Communication-Systems-Group/pdfsign.js/tree/master 我假设您正在尝试使用https://github.com/Communication-Systems-Group/pdfsign.js/tree/master
I think, unfortunately, that project is no longer maintained as the last commit was done over two years ago. 不幸的是,我认为该项目已经不再维持,因为最后一次提交是在两年前完成的。
Even then I'm not sure it ever worked, there are no links to automated builds that I can see. 即便如此,我也不确定它是否有效,我看不到自动构建的链接。
gulp-bower
indeed does not exist, https://bower.io/search/ returns nothing for that package :( gulp-bower
确实不存在, https: gulp-bower
不返回该包:(
You might need to find a different solution to your issue, maybe this would work? 您可能需要为您的问题找到不同的解决方案,也许这会有用吗? https://www.npmjs.com/package/commonpdf
https://www.npmjs.com/package/commonpdf
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.