On 10/30/2017 11:27 PM, Paolo Greppi wrote: > Regarding node-chalk, if you refer to this: > > $ cd node-chalk > $ node >> var test=require('./'); > TypeError: Cannot read property 'close' of undefined > at Object.<anonymous> > (/home/paolog/Sviluppo/debian/node-chalk/index.js:66:74) > ..
yes, the same error. $ adt-run ./ --- null adt-run: WARNING: "adt-run" is deprecated, please use "autopkgtest" (see manpage) adt-run [23:39:15]: version 4.4 adt-run [23:39:15]: host nishumbha; command line: /usr/bin/adt-run ./ --- null adt-run [23:39:16]: testbed dpkg architecture: amd64 adt-run [23:39:16]: testbed running kernel: Linux 4.12.0-1-amd64 #1 SMP Debian 4.12.6-1 (2017-08-12) adt-run [23:39:16]: @@@@@@@@@@@@@@@@@@@@ built-tree ./ adt-run [23:39:16]: testing package node-chalk version 2.1.0-1 adt-run [23:39:16]: test require: preparing testbed Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done adt-run [23:39:17]: test require: [----------------------- /usr/lib/nodejs/chalk/index.js:66 ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); ^ TypeError: Cannot read property 'close' of undefined at Object.<anonymous> (/usr/lib/nodejs/chalk/index.js:66:74) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at [eval]:1:1 at ContextifyScript.Script.runInThisContext (vm.js:25:33) adt-run [23:39:17]: test require: -----------------------] adt-run [23:39:17]: test require: - - - - - - - - - - results - - - - - - - - - - require FAIL non-zero exit status 1 adt-run [23:39:17]: test require: - - - - - - - - - - stderr - - - - - - - - - - /usr/lib/nodejs/chalk/index.js:66 ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); ^ TypeError: Cannot read property 'close' of undefined at Object.<anonymous> (/usr/lib/nodejs/chalk/index.js:66:74) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at [eval]:1:1 at ContextifyScript.Script.runInThisContext (vm.js:25:33) adt-run [23:39:17]: @@@@@@@@@@@@@@@@@@@@ summary require FAIL non-zero exit status 1 > it seems the ansi-styles API changed, it really must be node-ansi-styles (>= > 3.1.0). > > I have put that requirement in debian/control + more cleanup and also turned > on tests. > But I already have it installed, $ apt-cache policy node-ansi-styles node-ansi-styles: Installed: 3.2.0-1 Candidate: 3.2.0-1 > You can find those changes in a wip/paolog branch on alioth: > > https://anonscm.debian.org/cgit/pkg-javascript/node-chalk.git/log/?h=wip/paolog > > feel free to cherry-pick the commit in master if you need it. Even after building your branch and installing it, I get the same failure. node -e 'require("chalk");' /usr/lib/nodejs/chalk/index.js:66 ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); ^ TypeError: Cannot read property 'close' of undefined at Object.<anonymous> (/usr/lib/nodejs/chalk/index.js:66:74) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at [eval]:1:1 at ContextifyScript.Script.runInThisContext (vm.js:25:33) I can see the mocha tests are passing. Can you merge it into master if you see the require test is passing?
signature.asc
Description: OpenPGP digital signature
-- Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel