在sinon的凉亭安装期间获得错误

时间:2018-05-11 18:58:46

标签: javascript bower sinon angular-mock

我正在尝试运行npm install,其中存在bower安装脚本。我在尝试使用npm install命令时遇到错误。

bower sinon#~1.15.0                                         validate 1.15.4 against https://github.com/cjohansen/Sinon.JS.git#~1.15.0
bower                                                      ECONFLICT Unable to find suitable version for sinon
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ÁBCProject@0.0.0 install: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ÁBCProject@0.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Lenovo\AppData\Roaming\npm-cache\_logs\2018-05-11T18_51_33_764Z-debug.log

在日志文件中我收到这样的错误

689 info lifecycle ABCProject@0.0.0~install: Failed to exec install script
690 verbose stack Error: ABCProject@0.0.0 install: `bower install`
690 verbose stack Exit status 1
690 verbose stack     at EventEmitter.<anonymous> (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:283:16)
690 verbose stack     at emitTwo (events.js:126:13)
690 verbose stack     at EventEmitter.emit (events.js:214:7)
690 verbose stack     at ChildProcess.<anonymous> (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
690 verbose stack     at emitTwo (events.js:126:13)
690 verbose stack     at ChildProcess.emit (events.js:214:7)
690 verbose stack     at maybeClose (internal/child_process.js:925:16)
690 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
691 verbose pkgid ABCProject@0.0.0
692 verbose cwd E:\Projects\TenderEasy-Frontend
693 verbose Windows_NT 10.0.16299
694 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Lenovo\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
695 verbose node v8.11.1
696 verbose npm  v6.0.1
697 error code ELIFECYCLE
698 error errno 1
699 error ABCProject@0.0.0 install: `bower install`
699 error Exit status 1
700 error Failed at the ÁBCProject@0.0.0 install script.
700 error This is probably not a problem with npm. There is likely additional logging output above.
701 verbose exit [ 1, true ]

我的凉亭配置如下

"devDependencies": {
        "angular-mocks": "1.4.7",
        "sinon": "http://sinonjs.org/releases/sinon-1.12.1.js",
        "bardjs": "~0.1.0"
    }

我还没有找到任何解决方案。

0 个答案:

没有答案