Closed FarihaAbbasi1123 closed 7 years ago
What do D:\imodeljstest\test-imodel-service\node_modules\buffertools\build and D:\imodeljstest\test-imodel-service\node_modules\buffertools\build\Release contain?
It actually contain many files including buffertools.node.
The path from which it is requesting a file is actually there.
Get Outlook for iOShttps://aka.ms/o0ukef
From: Ben Noordhuis notifications@github.com Sent: Tuesday, October 17, 2017 7:07:43 PM To: bnoordhuis/node-buffertools Cc: Fariha Abbasi; Manual Subject: Re: [bnoordhuis/node-buffertools] buffertools.node not found (#91)
What do D:\imodeljstest\test-imodel-service\node_modules\buffertools\build and D:\imodeljstest\test-imodel-service\node_modules\buffertools\build\Release contain?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bnoordhuis/node-buffertools/issues/91#issuecomment-337243216, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AfWUuDkZsgqNw1sWCPIIBcz5c7EwdkLfks5stLSvgaJpZM4P8Edq.
Can you try upgrading node.js to v8.7.0? It's possible you're hitting a bug that's been fixed. This path in particular - \?\D:\imodeljstest\test-imodel-service\...
- looks suspect, I think it should have two leading backslashes.
That said, the error message could also mean that buffertools.node is compiled for the wrong architecture. Check what node -p process.arch
prints and pass that to npm / node-gyp with the --arch=...
parameter.
Following are the results of executing the commands. Please update
D:\imodeljstest\test-imodel-service>node -p process.arch x64
D:\imodeljstest\test-imodel-service>npm/node-gyp --arch=x64
Usage: npm
where
npm
Specify configs in the ini-formatted file:
C:\Users\Fariha.Abbasi.npmrc
or on the command line via: npm
npm@5.3.0 C:\Program Files\nodejs\node_modules\npm From: Ben Noordhuis [mailto:notifications@github.com] Sent: Tuesday, October 17, 2017 10:43 PM To: bnoordhuis/node-buffertools node-buffertools@noreply.github.com Cc: Fariha Abbasi Fariha.Abbasi@bentley.com; Manual manual@noreply.github.com Subject: Re: [bnoordhuis/node-buffertools] buffertools.node not found (#91)
Can you try upgrading node.js to v8.7.0? It's possible you're hitting a bug that's been fixed. This path in particular - \?\D:\imodeljstest\test-imodel-service... - looks suspect, I think it should have two leading backslashes.
That said, the error message could also mean that buffertools.node is compiled for the wrong architecture. Check what node -p process.arch prints and pass that to npm / node-gyp with the --arch=... parameter.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bnoordhuis/node-buffertools/issues/91#issuecomment-337303323, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AfWUuD3rQBqNWLIE7YWxvvBmiX1fT_8Yks5stObGgaJpZM4P8Edq.
npm/node-gyp means npm OR node-gyp, i.e., npm install --arch=x64
or node-gyp rebuild --arch=x64
.
Thanks its working now.
Happy to hear that.
I'm trying to run gulp build command and when I run that I get the following error:
D:\imodeljstest\test-imodel-service>gulp build D:\imodeljstest\test-imodel-service\node_modules\buffertools\buffertools.js:26 if (e.code !== 'MODULE_NOT_FOUND') throw e; ^
Error: The specified module could not be found. \?\D:\imodeljstest\test-imodel-service\node_modules\buffertools\build\Release\buffertools.node at Object.Module._extensions..node (module.js:598:18) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (D:\imodeljstest\test-imodel-service\node_modules\buffertools\buffertools.js:24:20)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
P.S: i'm using 64 bit operating system and node.js version is 8.2.1 and architecture is 64bit.