K
K
Kirill Gorelov2022-01-12 22:14:30
Node.js
Kirill Gorelov, 2022-01-12 22:14:30

Nmp i puppeteer not installing?

Everything was great before. Not for a long time I deleted the node_modules folder (specially), and now I reinstall all the packages, it swears when installing the pupetier. Removed package from json file, other packages installed fine.
I post the same error. Neither globally, nor set in any way.
61df27b33bfb9367969655.png

The contents of the log file ~/.npm/_logs/2022-01-12T19_06_16_157Z-debug-0.log
I cut off the beginning of the log file, because it does not allow me to insert more.

spoiler

60 timing reifyNode:node_modules/puppeteer/node_modules/ms Completed in 60ms
61 timing reifyNode:node_modules/puppeteer/node_modules/debug Completed in 60ms
62 timing reifyNode:node_modules/puppeteer/node_modules/node-fetch Completed in 61ms
63 timing reifyNode:node_modules/puppeteer Completed in 133ms
64 timing reify:unpack Completed in 134ms
65 timing reify:unretire Completed in 0ms
66 timing build:queue Completed in 1ms
67 info run [email protected] install node_modules/puppeteer node install.js
68 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advis... 364ms
69 timing auditReport:getReport Completed in 367ms
70 silly audit report {}
71 timing auditReport:init Completed in 0ms
72 timing reify:audit Completed in 368ms
73 info run [email protected] install { code: 1, signal: null }
74 timing reify:rollback:createSparse Completed in 32ms
75 timing reify:rollback:retireShallow Completed in 1ms
76 timing command:i Completed in 16250ms
77 verbose stack Error: command failed
77 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
77 verbose stack at ChildProcess.emit (events.js:400:28)
77 verbose stack at maybeClose (internal/child_process.js:1058:16)
77 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
78 verbose pkgid [email protected]
79 verbose cwd /opt/lampp/htdocs/coin/bots
80 verbose Linux 5.4.0-53-generic
81 verbose argv "/snap/node/5782/bin/node" "/usr/local/bin/npm" "i" "puppeteer" "--unsafe-perm=true"
82 verbose node v14.18.3
83 verbose npm v8.3.0
84 error code 1
85 error path /opt/lampp/htdocs/coin/bots/node_modules/puppeteer
86 error command failed
87 error command sh -c node install.js
88 verbose exit 1
89 timing npm Completed in 16406ms
90 verbose unfinished npm timer reify 1642014376310
91 verbose unfinished npm timer reify:build 1642014376701
92 verbose unfinished npm timer build 1642014376701
93 verbose unfinished npm timer build:deps 1642014376701
94 verbose unfinished npm timer build:run:install 1642014376702
95 verbose unfinished npm timer build:run:install:node_modules/puppeteer 1642014376702
96 verbose code 1
97 error A complete log of this run can be found in:
97 error /home/kirill/.npm/_logs/2022-01-12T19_06_16_157Z-debug-0.log



I have ubuntu 20.04 LTS. I updated the Linux packages before that.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-01-13
@vabka

You are doing something weird.
Generally, all packages are installed by adding them to the dependencies array in package.json, with the exception of global tools, which pupiter does not apply to.
And then just write npm i (without any add-ons) to download all the dependencies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question