File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
test/addons/node-module-version Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ const common = require('../../common');
44const assert = require ( 'assert' ) ;
55
66const re = new RegExp (
7- 'was compiled against a different Node.js version using\n' +
8- 'NODE_MODULE_VERSION 42. This version of Node.js requires\n' +
9- `NODE_MODULE_VERSION ${ process . versions . modules } .` ) ;
7+ '^Error: The module \'.+\'\n' +
8+ 'was compiled against a different Node\\.js version using\n' +
9+ 'NODE_MODULE_VERSION 42\\. This version of Node\\.js requires\n' +
10+ `NODE_MODULE_VERSION ${ process . versions . modules } . ` +
11+ 'Please try re-compiling or re-installing\n' +
12+ 'the module \\(for instance, using `npm rebuild` or `npm install`\\)\\.$' ) ;
1013
1114assert . throws ( ( ) => require ( `./build/${ common . buildType } /binding` ) , re ) ;
You can’t perform that action at this time.
0 commit comments