Ошибка при установке bower для sinon - PullRequest
0 голосов
/ 11 мая 2018

Я пытаюсь запустить npm install, где присутствуют сценарии установки bower. Я получаю сообщение об ошибке при попытке установить команду npm.

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"
    }

Я пока не нашел решения для этого.

...