cmake-js fails on client installation with “no such file or directory, uv_chdir”
Versions -
cmake - 3.5.1
cmake-js - 4.0.1
npm - 6.4.1
node - 8.14
I'm trying to use cmake-js in my package.js of my node app
{
"name": "test_cpp_with_node",
"version": "1.0.10",
"description": "",
"main": "index.js",
"scripts": {
"install": "cmake-js compile --log-level silly"
},
"author": "",
"license": "ISC"
}
It works locally in my code when I execute the "install" command - I see build folder created and .so is there - and it's a success.
Now - I pack it up (npm pack) - and of course I delete the build folder before and upload it to local local npm I have (on gemfury)
On the a client project that wants to consume it with npm install, I get an error below during the installation:
"Error: ENOENT: no such file or directory, uv_chdir"
info TOOL Using Unix Makefiles generator.
info CMD CONFIGURE
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/home/user1/git/folder/src/test1/node_modules/test_cpp_with_node/build"
info CMD CONFIGURE
ERR! OMG Error: ENOENT: no such file or directory, uv_chdir
ERR! OMG at process.chdir (/usr/lib/node_modules/cmake-js/node_modules/graceful-fs/polyfills.js:20:9)
ERR! OMG at CMake.<anonymous> (/usr/lib/node_modules/cmake-js/lib/es6/cMake.js:238:13)
ERR! OMG at Generator.throw (<anonymous>)
ERR! OMG at Generator.tryCatcher (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/util.js:16:23)
ERR! OMG at PromiseSpawn._promiseRejected (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/generators.js:107:10)
ERR! OMG at Promise._settlePromise (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:576:26)
ERR! OMG at Promise._settlePromise0 (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:614:10)
ERR! OMG at Promise._settlePromises (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:690:18)
ERR! OMG at _drainQueueStep (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:138:12)
ERR! OMG at _drainQueue (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:131:9)
ERR! OMG at Async._drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:147:5)
ERR! OMG at Immediate.Async.drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:17:14)
ERR! OMG at runCallback (timers.js:810:20)
ERR! OMG at tryOnImmediate (timers.js:768:5)
ERR! OMG at processImmediate [as _immediateCallback] (timers.js:745:5)
node.js cmake
add a comment |
Versions -
cmake - 3.5.1
cmake-js - 4.0.1
npm - 6.4.1
node - 8.14
I'm trying to use cmake-js in my package.js of my node app
{
"name": "test_cpp_with_node",
"version": "1.0.10",
"description": "",
"main": "index.js",
"scripts": {
"install": "cmake-js compile --log-level silly"
},
"author": "",
"license": "ISC"
}
It works locally in my code when I execute the "install" command - I see build folder created and .so is there - and it's a success.
Now - I pack it up (npm pack) - and of course I delete the build folder before and upload it to local local npm I have (on gemfury)
On the a client project that wants to consume it with npm install, I get an error below during the installation:
"Error: ENOENT: no such file or directory, uv_chdir"
info TOOL Using Unix Makefiles generator.
info CMD CONFIGURE
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/home/user1/git/folder/src/test1/node_modules/test_cpp_with_node/build"
info CMD CONFIGURE
ERR! OMG Error: ENOENT: no such file or directory, uv_chdir
ERR! OMG at process.chdir (/usr/lib/node_modules/cmake-js/node_modules/graceful-fs/polyfills.js:20:9)
ERR! OMG at CMake.<anonymous> (/usr/lib/node_modules/cmake-js/lib/es6/cMake.js:238:13)
ERR! OMG at Generator.throw (<anonymous>)
ERR! OMG at Generator.tryCatcher (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/util.js:16:23)
ERR! OMG at PromiseSpawn._promiseRejected (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/generators.js:107:10)
ERR! OMG at Promise._settlePromise (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:576:26)
ERR! OMG at Promise._settlePromise0 (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:614:10)
ERR! OMG at Promise._settlePromises (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:690:18)
ERR! OMG at _drainQueueStep (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:138:12)
ERR! OMG at _drainQueue (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:131:9)
ERR! OMG at Async._drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:147:5)
ERR! OMG at Immediate.Async.drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:17:14)
ERR! OMG at runCallback (timers.js:810:20)
ERR! OMG at tryOnImmediate (timers.js:768:5)
ERR! OMG at processImmediate [as _immediateCallback] (timers.js:745:5)
node.js cmake
add a comment |
Versions -
cmake - 3.5.1
cmake-js - 4.0.1
npm - 6.4.1
node - 8.14
I'm trying to use cmake-js in my package.js of my node app
{
"name": "test_cpp_with_node",
"version": "1.0.10",
"description": "",
"main": "index.js",
"scripts": {
"install": "cmake-js compile --log-level silly"
},
"author": "",
"license": "ISC"
}
It works locally in my code when I execute the "install" command - I see build folder created and .so is there - and it's a success.
Now - I pack it up (npm pack) - and of course I delete the build folder before and upload it to local local npm I have (on gemfury)
On the a client project that wants to consume it with npm install, I get an error below during the installation:
"Error: ENOENT: no such file or directory, uv_chdir"
info TOOL Using Unix Makefiles generator.
info CMD CONFIGURE
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/home/user1/git/folder/src/test1/node_modules/test_cpp_with_node/build"
info CMD CONFIGURE
ERR! OMG Error: ENOENT: no such file or directory, uv_chdir
ERR! OMG at process.chdir (/usr/lib/node_modules/cmake-js/node_modules/graceful-fs/polyfills.js:20:9)
ERR! OMG at CMake.<anonymous> (/usr/lib/node_modules/cmake-js/lib/es6/cMake.js:238:13)
ERR! OMG at Generator.throw (<anonymous>)
ERR! OMG at Generator.tryCatcher (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/util.js:16:23)
ERR! OMG at PromiseSpawn._promiseRejected (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/generators.js:107:10)
ERR! OMG at Promise._settlePromise (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:576:26)
ERR! OMG at Promise._settlePromise0 (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:614:10)
ERR! OMG at Promise._settlePromises (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:690:18)
ERR! OMG at _drainQueueStep (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:138:12)
ERR! OMG at _drainQueue (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:131:9)
ERR! OMG at Async._drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:147:5)
ERR! OMG at Immediate.Async.drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:17:14)
ERR! OMG at runCallback (timers.js:810:20)
ERR! OMG at tryOnImmediate (timers.js:768:5)
ERR! OMG at processImmediate [as _immediateCallback] (timers.js:745:5)
node.js cmake
Versions -
cmake - 3.5.1
cmake-js - 4.0.1
npm - 6.4.1
node - 8.14
I'm trying to use cmake-js in my package.js of my node app
{
"name": "test_cpp_with_node",
"version": "1.0.10",
"description": "",
"main": "index.js",
"scripts": {
"install": "cmake-js compile --log-level silly"
},
"author": "",
"license": "ISC"
}
It works locally in my code when I execute the "install" command - I see build folder created and .so is there - and it's a success.
Now - I pack it up (npm pack) - and of course I delete the build folder before and upload it to local local npm I have (on gemfury)
On the a client project that wants to consume it with npm install, I get an error below during the installation:
"Error: ENOENT: no such file or directory, uv_chdir"
info TOOL Using Unix Makefiles generator.
info CMD CONFIGURE
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/home/user1/git/folder/src/test1/node_modules/test_cpp_with_node/build"
info CMD CONFIGURE
ERR! OMG Error: ENOENT: no such file or directory, uv_chdir
ERR! OMG at process.chdir (/usr/lib/node_modules/cmake-js/node_modules/graceful-fs/polyfills.js:20:9)
ERR! OMG at CMake.<anonymous> (/usr/lib/node_modules/cmake-js/lib/es6/cMake.js:238:13)
ERR! OMG at Generator.throw (<anonymous>)
ERR! OMG at Generator.tryCatcher (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/util.js:16:23)
ERR! OMG at PromiseSpawn._promiseRejected (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/generators.js:107:10)
ERR! OMG at Promise._settlePromise (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:576:26)
ERR! OMG at Promise._settlePromise0 (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:614:10)
ERR! OMG at Promise._settlePromises (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/promise.js:690:18)
ERR! OMG at _drainQueueStep (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:138:12)
ERR! OMG at _drainQueue (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:131:9)
ERR! OMG at Async._drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:147:5)
ERR! OMG at Immediate.Async.drainQueues (/usr/lib/node_modules/cmake-js/node_modules/bluebird/js/release/async.js:17:14)
ERR! OMG at runCallback (timers.js:810:20)
ERR! OMG at tryOnImmediate (timers.js:768:5)
ERR! OMG at processImmediate [as _immediateCallback] (timers.js:745:5)
node.js cmake
node.js cmake
asked Jan 2 at 9:03
user1025852user1025852
1,16972346
1,16972346
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003614%2fcmake-js-fails-on-client-installation-with-no-such-file-or-directory-uv-chdir%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003614%2fcmake-js-fails-on-client-installation-with-no-such-file-or-directory-uv-chdir%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown