凉亭安装给出“未找到包裹”

时间:2018-05-09 13:25:41

标签: javascript gulp bower

我从github下载了一个JavaScript项目。该项目正在使用bower来管理依赖关系。

我使用npm install bower

安装 NodeJS 然后 Bower

但是,当我尝试使用bower install安装所有依赖项时,出现错误:ENOTFOUND Package gulp-concat not found

当我使用npm install -g gulp-concat安装 gulp-concat 时,我在运行bower install时出现了另一个错误:ENOTFOUND Package gulp-bower not found

我可以手动安装每个依赖项,然后构建项目。但是不应该bower install为我下载并安装所有依赖项

修改 这是我的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"
  ]
}

我的项目中没有package.json

1 个答案:

答案 0 :(得分:0)

我假设您正在尝试使用https://github.com/Communication-Systems-Group/pdfsign.js/tree/master

不幸的是,我认为该项目已不再维持,因为最后一次提交是在两年前完成的。

即便如此,我也不确定它是否有效,我看不到自动构建的链接。

<meta property="og:title" content="AddThis Tour" /> <meta property="og:description" content="Watch the AddThis Tour video." /> <meta property="og:image" content="http://i2.ytimg.com/vi/1F7DKyFt5pY/default.jpg" /> 确实不存在,https://bower.io/search/没有为该包返回任何内容:(

您可能需要为您的问题找到不同的解决方案,也许这会有用吗? https://www.npmjs.com/package/commonpdf