carbon-now-cli
carbon-now-cli copied to clipboard
npm install error
editid@Server:~$ sudo npm i -g carbon-now-cli
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
/usr/local/node-14.15.4/bin/carbon-now -> /usr/local/node-14.15.4/lib/node_modules/carbon-now-cli/cli.js
> [email protected] install /usr/local/node-14.15.4/lib/node_modules/carbon-now-cli/node_modules/puppeteer
> node install.js
ERROR: Failed to download Chromium r686378! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
Error: EACCES: permission denied, mkdir '/usr/local/node-14.15.4/lib/node_modules/carbon-now-cli/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher.<anonymous> (/usr/local/node-14.15.4/lib/node_modules/carbon-now-cli/node_modules/puppeteer/lib/helper.js:111:15)
at Object.<anonymous> (/usr/local/node-14.15.4/lib/node_modules/carbon-now-cli/node_modules/puppeteer/install.js:64:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/local/node-14.15.4/lib/node_modules/carbon-now-cli/node_modules/puppeteer/.local-chromium'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /root/.npm/_logs/2021-08-17T21_03_15_528Z-debug.log
I've tried everything, including clearing cache, and trying on a different machine, this is the third machine i've tried, all with the same issue, All ubuntu 20.04 LTS, I've tried installing [email protected] manually too