Доброго времени суток.
Конфигурация ubuntu:
- Ubuntu LTS 16.04
- Docker
- NodeJS
- NPM
Столкнулся с проблемой, когда начал ставить готовый билд для тестов.
Странно то что на ОС Windows все работает.
При построении получаю следующую ошибку:
opendota-core@17.6.1 build /usr/src
> npm install && npm run lint
> protobufjs@6.8.8 postinstall /usr/src/node_modules/protobufjs
> node scripts/postinstall
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 832 packages in 22.46s
> opendota-core@17.6.1 lint /usr/src
> eslint . --ext .js,.jsx --ignore-path .gitignore
Error: Error: Could not load file .gitignore
Error: ENOENT: no such file or directory, stat '.gitignore'
at Object.fs.statSync (fs.js:948:11)
at new CLIEngine (/usr/src/node_modules/eslint/lib/cli-engine.js:386:25)
at Object.execute (/usr/src/node_modules/eslint/lib/cli.js:190:28)
at Object.<anonymous> (/usr/src/node_modules/eslint/bin/eslint.js:78:28)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! opendota-core@17.6.1 lint: `eslint . --ext .js,.jsx --ignore-path .gitignore`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the opendota-core@17.6.1 lint 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! /root/.npm/_logs/2019-01-05T22_53_54_906Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! opendota-core@17.6.1 build: `npm install && npm run lint`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the opendota-core@17.6.1 build 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! /root/.npm/_logs/2019-01-05T22_53_54_936Z-debug.log
ERROR: Service 'core' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 2
Подскажите как исправить данную сложность, уже все перепробовал.