Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: node-openalpr - Can't change back #29

Open
RichardKuduk opened this issue Jan 30, 2019 · 0 comments
Open

Error: node-openalpr - Can't change back #29

RichardKuduk opened this issue Jan 30, 2019 · 0 comments

Comments

@RichardKuduk
Copy link

RichardKuduk commented Jan 30, 2019

Hello, I was following instructions on the npm page and got following error.

`pi@raspberrypi:/usr/local/src $ sudo npm install node-openalpr

npm ERR! code 128
npm ERR! Command failed: /usr/bin/git submodule update -q --init --recursive
npm ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-1e07de94': Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-01-30T14_04_12_877Z-debug.log
pi@raspberrypi:/usr/local/src $ ls
node_modules openalpr opencv opencv-2.4.13 OpenCV-2.4.13.zip tesseract
pi@raspberrypi:/usr/local/src $ sudo cat /root/.npm/_logs/2019-01-30T14_04_12_877Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'node-openalpr' ]
2 info using npm@6.4.1
3 info using node@v11.2.0
4 verbose npm-session 65ab64a3734615da
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/node-openalpr 402ms (from cache)
8 silly pacote tag manifest for node-openalpr@latest fetched in 485ms
9 timing stage:loadCurrentTree Completed in 4897ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 25ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 990ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule node-openalpr@1.1.1 checking installable status
17 silly removeObsoleteDep removing node-openalpr@1.1.1 from the tree as its been replaced by a newer version or is no longer required
18 silly removeObsoleteDep removing fs-extra@0.23.1 from the tree as its been replaced by a newer version or is no longer required
19 silly removeObsoleteDep removing nan@2.12.1 from the tree as its been replaced by a newer version or is no longer required
20 http fetch GET 304 https://registry.npmjs.org/fs-extra 394ms (from cache)
21 http fetch GET 304 https://registry.npmjs.org/nan 461ms (from cache)
22 http fetch GET 200 https://registry.npmjs.org/fs-extra/-/fs-extra-0.23.1.tgz 199ms (from cache)
23 silly pacote version manifest for nan@2.12.1 fetched in 671ms
24 silly resolveWithNewModule nan@2.12.1 checking installable status
25 silly pacote version manifest for fs-extra@0.23.1 fetched in 700ms
26 silly resolveWithNewModule fs-extra@0.23.1 checking installable status
27 silly fetchPackageMetaData error for node-pre-gyp@git+https://github.com/mapbox/node-pre-gyp.git Command failed: /usr/bin/git submodule update -q --init --recursive
27 silly fetchPackageMetaData fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-1e07de94': Permission denied
28 timing stage:rollbackFailedOptional Completed in 23ms
29 timing stage:runTopLevelLifecycles Completed in 10814ms
30 silly saveTree src
30 silly saveTree ├── abbrev@1.1.1
30 silly saveTree ├─┬ ajv@6.7.0
30 silly saveTree │ ├── fast-deep-equal@2.0.1
30 silly saveTree │ ├── fast-json-stable-stringify@2.0.0
30 silly saveTree │ ├── json-schema-traverse@0.4.1
30 silly saveTree │ └─┬ uri-js@4.2.2
30 silly saveTree │ └── punycode@2.1.1
30 silly saveTree ├── ansi@0.3.1
30 silly saveTree ├─┬ are-we-there-yet@1.1.5
30 silly saveTree │ ├── delegates@1.0.0
30 silly saveTree │ └─┬ readable-stream@2.3.6
30 silly saveTree │ ├── core-util-is@1.0.2
30 silly saveTree │ ├── inherits@2.0.3
30 silly saveTree │ ├── isarray@1.0.0
30 silly saveTree │ ├── process-nextick-args@2.0.0
30 silly saveTree │ ├── safe-buffer@5.1.2
30 silly saveTree │ ├── string_decoder@1.1.1
30 silly saveTree │ └── util-deprecate@1.0.2
30 silly saveTree ├─┬ asn1@0.2.4
30 silly saveTree │ └── safer-buffer@2.1.2
30 silly saveTree ├── assert-plus@1.0.0
30 silly saveTree ├── asynckit@0.4.0
30 silly saveTree ├── aws-sign2@0.7.0
30 silly saveTree ├── aws4@1.8.0
30 silly saveTree ├── balanced-match@1.0.0
30 silly saveTree ├─┬ bcrypt-pbkdf@1.0.2
30 silly saveTree │ └── tweetnacl@0.14.5
30 silly saveTree ├── block-stream@0.0.9
30 silly saveTree ├─┬ brace-expansion@1.1.11
30 silly saveTree │ └── concat-map@0.0.1
30 silly saveTree ├── buffer-shims@1.0.0
30 silly saveTree ├── caseless@0.12.0
30 silly saveTree ├─┬ combined-stream@1.0.7
30 silly saveTree │ └── delayed-stream@1.0.0
30 silly saveTree ├── concat-map@0.0.1
30 silly saveTree ├── core-util-is@1.0.2
30 silly saveTree ├── dashdash@1.14.1
30 silly saveTree ├─┬ debug@2.2.0
30 silly saveTree │ └── ms@0.7.1
30 silly saveTree ├── deep-extend@0.4.2
30 silly saveTree ├── delayed-stream@1.0.0
30 silly saveTree ├── delegates@1.0.0
30 silly saveTree ├─┬ ecc-jsbn@0.1.2
30 silly saveTree │ └── jsbn@0.1.1
30 silly saveTree ├── extend@3.0.2
30 silly saveTree ├── extsprintf@1.3.0
30 silly saveTree ├── fast-deep-equal@2.0.1
30 silly saveTree ├── fast-json-stable-stringify@2.0.0
30 silly saveTree ├── forever-agent@0.6.1
30 silly saveTree ├─┬ form-data@2.3.3
30 silly saveTree │ └─┬ mime-types@2.1.21
30 silly saveTree │ └── mime-db@1.37.0
30 silly saveTree ├── fs.realpath@1.0.0
30 silly saveTree ├─┬ fstream-ignore@1.0.5
30 silly saveTree │ ├─┬ fstream@1.0.11
30 silly saveTree │ │ ├── graceful-fs@4.1.15
30 silly saveTree │ │ ├─┬ mkdirp@0.5.1
30 silly saveTree │ │ │ └── minimist@0.0.8
30 silly saveTree │ │ └─┬ rimraf@2.6.3
30 silly saveTree │ │ └─┬ glob@7.1.3
30 silly saveTree │ │ ├─┬ inflight@1.0.6
30 silly saveTree │ │ │ ├─┬ once@1.4.0
30 silly saveTree │ │ │ │ └── wrappy@1.0.2
30 silly saveTree │ │ │ └── wrappy@1.0.2
30 silly saveTree │ │ ├── minimatch@3.0.4
30 silly saveTree │ │ ├── once@1.4.0
30 silly saveTree │ │ └── path-is-absolute@1.0.1
30 silly saveTree │ └── minimatch@3.0.4
30 silly saveTree ├── fstream@1.0.11
30 silly saveTree ├─┬ gauge@1.2.7
30 silly saveTree │ ├── has-unicode@2.0.1
30 silly saveTree │ ├── lodash.pad@4.5.1
30 silly saveTree │ ├── lodash.padend@4.6.1
30 silly saveTree │ └── lodash.padstart@4.6.1
30 silly saveTree ├── getpass@0.1.7
30 silly saveTree ├── glob@7.1.3
30 silly saveTree ├── graceful-fs@4.1.15
30 silly saveTree ├── har-schema@2.0.0
30 silly saveTree ├── har-validator@5.1.3
30 silly saveTree ├── has-unicode@2.0.1
30 silly saveTree ├─┬ http-signature@1.2.0
30 silly saveTree │ ├─┬ jsprim@1.4.1
30 silly saveTree │ │ ├── json-schema@0.2.3
30 silly saveTree │ │ └─┬ verror@1.10.0
30 silly saveTree │ │ └── extsprintf@1.4.0
30 silly saveTree │ └── sshpk@1.16.1
30 silly saveTree ├── inflight@1.0.6
30 silly saveTree ├── inherits@2.0.3
30 silly saveTree ├── ini@1.3.5
30 silly saveTree ├── is-typedarray@1.0.0
30 silly saveTree ├── isarray@1.0.0
30 silly saveTree ├── isstream@0.1.2
30 silly saveTree ├── jsbn@0.1.1
30 silly saveTree ├── json-schema-traverse@0.4.1
30 silly saveTree ├── json-schema@0.2.3
30 silly saveTree ├── json-stringify-safe@5.0.1
30 silly saveTree ├── jsonfile@2.4.0
30 silly saveTree ├── jsprim@1.4.1
30 silly saveTree ├── lodash.pad@4.5.1
30 silly saveTree ├── lodash.padend@4.6.1
30 silly saveTree ├── lodash.padstart@4.6.1
30 silly saveTree ├── mime-db@1.37.0
30 silly saveTree ├── mime-types@2.1.21
30 silly saveTree ├── minimatch@3.0.4
30 silly saveTree ├── minimist@0.0.8
30 silly saveTree ├── mkdirp@0.5.1
30 silly saveTree ├── ms@0.7.1
30 silly saveTree ├─┬ node-openalpr@1.1.1
30 silly saveTree │ ├── fs-extra@0.23.1
30 silly saveTree │ └── nan@2.12.1
30 silly saveTree ├─┬ node-pre-gyp@0.6.18
30 silly saveTree │ ├── nopt@3.0.6
30 silly saveTree │ ├── npmlog@2.0.4
30 silly saveTree │ ├─┬ rc@1.1.7
30 silly saveTree │ │ ├── minimist@1.2.0
30 silly saveTree │ │ └── strip-json-comments@2.0.1
30 silly saveTree │ ├─┬ request@2.88.0
30 silly saveTree │ │ ├── oauth-sign@0.9.0
30 silly saveTree │ │ ├── performance-now@2.1.0
30 silly saveTree │ │ ├── qs@6.5.2
30 silly saveTree │ │ ├─┬ tough-cookie@2.4.3
30 silly saveTree │ │ │ ├── psl@1.1.31
30 silly saveTree │ │ │ └── punycode@1.4.1
30 silly saveTree │ │ ├── tunnel-agent@0.6.0
30 silly saveTree │ │ └── uuid@3.3.2
30 silly saveTree │ ├─┬ rimraf@2.4.5
30 silly saveTree │ │ └── glob@6.0.4
30 silly saveTree │ ├── semver@5.1.1
30 silly saveTree │ ├─┬ tar-pack@3.1.4
30 silly saveTree │ │ ├── once@1.3.3
30 silly saveTree │ │ ├─┬ readable-stream@2.1.5
30 silly saveTree │ │ │ ├── process-nextick-args@1.0.7
30 silly saveTree │ │ │ └── string_decoder@0.10.31
30 silly saveTree │ │ ├── rimraf@2.5.4
30 silly saveTree │ │ ├── tar@2.2.1
30 silly saveTree │ │ └── uid-number@0.0.6
30 silly saveTree │ └── tar@2.2.1
30 silly saveTree ├── nopt@3.0.6
30 silly saveTree ├── npmlog@2.0.4
30 silly saveTree ├── oauth-sign@0.9.0
30 silly saveTree ├── once@1.4.0
30 silly saveTree ├── path-is-absolute@1.0.1
30 silly saveTree ├── performance-now@2.1.0
30 silly saveTree ├── process-nextick-args@1.0.7
30 silly saveTree ├── psl@1.1.31
30 silly saveTree ├── punycode@1.4.1
30 silly saveTree ├── qs@6.5.2
30 silly saveTree ├── rc@1.1.7
30 silly saveTree ├── readable-stream@2.1.5
30 silly saveTree ├── request@2.88.0
30 silly saveTree ├── rimraf@2.6.3
30 silly saveTree ├── safe-buffer@5.1.2
30 silly saveTree ├── safer-buffer@2.1.2
30 silly saveTree ├── semver@5.1.1
30 silly saveTree ├── sshpk@1.16.1
30 silly saveTree ├── string_decoder@0.10.31
30 silly saveTree ├── strip-json-comments@2.0.1
30 silly saveTree ├── tar-pack@3.1.4
30 silly saveTree ├── tar@2.2.1
30 silly saveTree ├── tough-cookie@2.4.3
30 silly saveTree ├── tunnel-agent@0.6.0
30 silly saveTree ├── tweetnacl@0.14.5
30 silly saveTree ├── uid-number@0.0.6
30 silly saveTree ├── uri-js@4.2.2
30 silly saveTree ├── util-deprecate@1.0.2
30 silly saveTree ├── uuid@3.3.2
30 silly saveTree ├── verror@1.10.0
30 silly saveTree └── wrappy@1.0.2
31 verbose stack Error: Command failed: /usr/bin/git submodule update -q --init --recursive
31 verbose stack fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-1e07de94': Permission denied
31 verbose stack
31 verbose stack at ChildProcess.exithandler (child_process.js:294:12)
31 verbose stack at ChildProcess.emit (events.js:182:13)
31 verbose stack at maybeClose (internal/child_process.js:978:16)
31 verbose stack at Socket.stream.socket.on (internal/child_process.js:395:11)
31 verbose stack at Socket.emit (events.js:182:13)
31 verbose stack at Pipe._handle.close (net.js:616:12)
32 verbose cwd /usr/local/src
33 verbose Linux 4.14.79-v7+
34 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "node-openalpr"
35 verbose node v11.2.0
36 verbose npm v6.4.1
37 error code 128
38 error Command failed: /usr/bin/git submodule update -q --init --recursive
38 error fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-1e07de94': Permission denied
39 verbose exit [ 1, true ]
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant