File tree 1 file changed +6
-3
lines changed
test/addons/node-module-version
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');
4
4
const assert = require ( 'assert' ) ;
5
5
6
6
const 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`\\)\\.$' ) ;
10
13
11
14
assert . throws ( ( ) => require ( `./build/${ common . buildType } /binding` ) , re ) ;
You can’t perform that action at this time.
0 commit comments