[Pkg-javascript-devel] Bug#960283: npm says 'pathArray is not defined' when I try to use it from buster-backports

2020-05-13 Thread Nikolay Shaplov
В письме от среда, 13 мая 2020 г. 12:40:25 MSK пользователь Christian Motschke 
написал:

> I found your Bug report and had the same error. I fixed it for me. You have
> to edit the file /usr/lib/nodejs/dot-prop/index.js and replace 3
> occurrences of
> 
> if (pathArray.length === 0) {
> 
> with
> 
> if (pathArr.length === 0) {

Thanks! I hope it will be helpful to the packet maintainers.


> I don’t know how to comment the Bug, maybe you can give this hint on your
> bug.

You just add 960...@bugs.debian.org to the CC when you send your e-maill 
message will be added to the bug #960283 as a comment.
(For this reply I already did it, so I hope package maintainers will get your 
solution)

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

[Pkg-javascript-devel] Bug#960283: npm says 'pathArray is not defined' when I try to use it from buster-backports

2020-05-13 Thread Thomas Renard
On Mon, 11 May 2020 14:17:30 + Nikolay Shaplov  wrote:
> Package: npm
> Version: 6.14.3+ds-1~bpo10+1
> Severity: normal
> 
> Hi! I tried to use npm from buster-backports. Actually I wanted to
> report another bug, but desided to check if it is fixed in backports.
> But found a new one.
> 
> So I am running a command
> 
> # npm install matrix-appservice-irc --global
> 
> and get
> 
> npm ERR! pathArray is not defined
> 
> npm ERR! A complete log of this run can be found in:
> npm ERR! /root/.npm/_logs/2020-05-11T14_11_32_344Z-debug.log
> 
> 

I get this error with simply entering

npm:

npm ERR! pathArray is not defined



npm ERR! A complete log of this run can be found in:

npm ERR! /home/myuser/.npm/_logs/2020-05-13T08_00_52_795Z-debug.log

debug report as attachment...
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm' ]
2 info using npm@6.14.3
3 info using node@v10.19.0
4 verbose stack ReferenceError: pathArray is not defined
4 verbose stack at Object.get (/usr/lib/nodejs/dot-prop/index.js:40:3)
4 verbose stack at Configstore.get (/usr/lib/nodejs/configstore/index.js:70:18)
4 verbose stack at UpdateNotifier.check (/usr/share/npm/node_modules/update-notifier/index.js:78:16)
4 verbose stack at module.exports.options (/usr/share/npm/node_modules/update-notifier/index.js:151:17)
4 verbose stack at EventEmitter. (/usr/share/npm/bin/npm-cli.js:85:48)
4 verbose stack at process._tickCallback (internal/process/next_tick.js:61:11)
5 verbose cwd /home/dimension
6 verbose Linux 4.19.0-9-amd64
7 verbose argv "/usr/bin/node" "/usr/bin/npm"
8 verbose node v10.19.0
9 verbose npm  v6.14.3
10 error pathArray is not defined
11 verbose exit [ 1, true ]
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

[Pkg-javascript-devel] Bug#960283: npm says 'pathArray is not defined' when I try to use it from buster-backports

2020-05-11 Thread Nikolay Shaplov
Package: npm
Version: 6.14.3+ds-1~bpo10+1
Severity: normal

Hi! I tried to use npm from buster-backports. Actually I wanted to
report another bug, but desided to check if it is fixed in backports.
But found a new one.

So I am running a command

# npm install matrix-appservice-irc --global

and get

npm ERR! pathArray is not defined

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-05-11T14_11_32_344Z-debug.log


log file says:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'install',
1 verbose cli   'matrix-appservice-irc',
1 verbose cli   '--global' ]
2 info using npm@6.14.3
3 info using node@v10.19.0
4 verbose stack ReferenceError: pathArray is not defined
4 verbose stack at Object.get (/usr/lib/nodejs/dot-prop/index.js:40:3)
4 verbose stack at Configstore.get 
(/usr/lib/nodejs/configstore/index.js:70:18)
4 verbose stack at UpdateNotifier.check 
(/usr/share/npm/node_modules/update-notifier/index.js:78:16)
4 verbose stack at module.exports.options 
(/usr/share/npm/node_modules/update-notifier/index.js:151:17)
4 verbose stack at EventEmitter. 
(/usr/share/npm/bin/npm-cli.js:85:48)
4 verbose stack at process._tickCallback 
(internal/process/next_tick.js:61:11)
5 verbose cwd /
6 verbose Linux 4.19.0-6-amd64
7 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "matrix-appservice-irc" 
"--global"
8 verbose node v10.19.0
9 verbose npm  v6.14.3
10 error pathArray is not defined
11 verbose exit [ 1, true ]


I do not know anything conserning npm, I do not understand why it fails,
so I am just reporting this behaviour


-- System Information:
Debian Release: 10.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages npm depends on:
ii  ca-certificates 20190110
ii  node-abbrev 1.1.1-1
ii  node-ajv6.10.2-1~bpo10+1
ii  node-ansi   0.3.0-3
ii  node-ansi-regex 3.0.0-1
ii  node-ansi-styles3.2.1-1
ii  node-ansistyles 0.1.3-1
ii  node-aproba 1.2.0-1
ii  node-archy  1.0.0-2
ii  node-are-we-there-yet   1.1.4-1
ii  node-asap   2.0.6-1
ii  node-asn1   0.2.3-1
ii  node-assert-plus1.0.0-1
ii  node-asynckit   0.4.0-2
ii  node-aws-sign2  0.7.1-1
ii  node-aws4   1.8.0-1
ii  node-balanced-match 0.4.2-1
ii  node-bcrypt-pbkdf   1.0.1-1
ii  node-bl 1.1.2-1
ii  node-bluebird   3.5.1+dfsg2-2
ii  node-boxen  1.2.2-1
ii  node-brace-expansion1.1.8-1
ii  node-builtin-modules3.0.0-1
ii  node-builtins   1.0.3-1
ii  node-cacache11.3.2-2
ii  node-call-limit 1.1.0-1
ii  node-camelcase  5.0.0-1
ii  node-caseless   0.12.0-1
ii  node-chalk  2.4.2-1~bpo10+1
ii  node-chownr 1.1.1-1
ii  node-ci-info1.1.2-1
ii  node-cli-boxes  1.0.0-1
ii  node-cliui  4.1.0-1
ii  node-clone  2.1.2-1
ii  node-co 4.6.0-1
ii  node-color-convert  1.9.0-3
ii  node-color-name 1.1.3-1
ii  node-colors 1.1.2-1
ii  node-columnify  1.5.4-1
ii  node-combined-stream1.0.7-1
ii  node-concat-map 0.0.1-1
ii  node-concat-stream  1.6.2-1
ii  node-config-chain   1.1.11-1
ii  node-configstore3.1.1-2
ii  node-console-control-strings1.1.0-1
ii  node-copy-concurrently  1.0.5-4
ii  node-core-util-is   1.0.2-1
ii  node-cross-spawn5.1.0-2
ii  node-crypto-random-string   1.0.0-1
ii  node-cyclist1.0.1-2
ii  node-dashdash   1.14.1-2
ii  node-debug  3.1.0-2
ii  node-decamelize 1.2.0-1
ii  node-deep-extend0.4.1-2
ii  node-defaults   1.0.3-1
ii  node-define-properties  1.1.3-1~bpo10+1
ii  node-delayed-stream 0.0.5-1
ii  node-delegates  1.0.0-1
ii  node-detect-indent  5.0.0-1
ii  node-detect-newline 2.1.0-1
ii  node-dot-prop   4.1.1-1+deb10u1
ii  node-duplexer3  0.1.4-4
ii  node-duplexify  3.6.1-1
ii  node-ecc-jsbn   0.1.1-1
ii  node-editor 1.0.0-1
ii  node-encoding