Answer the question
In order to leave comments, you need to log in
How to fix a critical error when building a build on an Ubuntu server?
Good day.
ubuntu config:
[email protected] build /usr/src
> npm install && npm run lint
> [email protected] postinstall /usr/src/node_modules/protobufjs
> node scripts/postinstall
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 832 packages in 22.46s
> [email protected] 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! [email protected] lint: `eslint . --ext .js,.jsx --ignore-path .gitignore`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] 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! [email protected] build: `npm install && npm run lint`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] 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
Answer the question
In order to leave comments, you need to log in
What's wrong with "I don't have a .gitignore file, give me one quickly!" ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question