-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not start node.js process (node), make sure your system has node.js installed. #555
Comments
And by the way, I just checked in Visual Studio Code. Wallaby.js is running fine (same machine as the one where Atom does not play nicely with Wallaby.js). |
It looks like Atom somehow can't resolve your system node.js. We use the exact same code to start wallaby from VS Code and Atom, so it looks like an issue in Atom (which I can't yet reproduce locally). Anyway, setting
In cases like this, we recommend to have a look into wallaby console, it may shed some light. Is there anything interesting in it? |
I'll try to reinstall atom and see if it helps. |
It did not help. I still see the same errors. Using Atom 1.7.0. @ArtemGovorov contact me privately if you would like to have a look at my running system. |
It looks like it still can't find your node (or your init script is not used/wrong file/path is used). Try this:
|
Does not work either. If I don't put /*globals __dirname */
'use strict';
var babel = require ('babel-core');
var fs = require ('fs');
var path = require ('path');
var babelConfig = JSON.parse (fs.readFileSync (path.join (__dirname, '.babelrc')));
babelConfig.babel = babel;
module.exports = function (wallaby) {
return {
files: [
{pattern: 'test/test-helper.js'},
{pattern: 'src/**/*.js'}
],
tests: [
{pattern: 'src.test/**/*.js'},
],
compilers: {
'**/*.js*': wallaby.compilers.babel (babelConfig)
},
debug: true,
env: {
type: 'node',
runner: 'node'
},
bootstrap: function (wallaby) {
// See http://wallabyjs.com/docs/config/bootstrap.html
var path = require ('path');
var sep = path.sep;
console.log ('Setup wallaby');
// Ensure that we can require self (just like what module 'require-self'
// does), but remapping by default the path to './src' rather than './lib'
// as specified by package "main".
// See /~https://github.com/wallabyjs/public/issues/453
var packageConfig = require (path.join (wallaby.localProjectDir, 'package.json'));
var packageName = packageConfig.name;
var modulePrototype = require ('module').Module.prototype;
if (!modulePrototype._originalRequire) {
modulePrototype._originalRequire = modulePrototype.require;
modulePrototype.require = function (filePath) {
if (filePath === packageName) {
return modulePrototype._originalRequire.call (this, path.join (wallaby.projectCacheDir, 'src'));
} else {
return modulePrototype._originalRequire.call (this, filePath);
}
};
}
// Remove react from the require.cache, or else some code might not get
// executed when editing the source code.
// See /~https://github.com/wallabyjs/public/issues/321
Object.keys (require.cache)
.forEach (function (k) {
if (k.indexOf (sep + 'react' + sep) > -1) {
delete require.cache[k];
}
});
// Include the test helper, which sets up the document and window objects
// as globals:
require ('./test/test-helper');
},
teardown: function () {
console.log ('Teardown wallaby');
}
};
}; |
Got it. This: ...
module.exports = function (wallaby) {
return {
...
env: {
type: 'node',
runner: 'node'
},
... is causing the ENOENT issue. ...
module.exports = function (wallaby) {
return {
...
env: {
type: 'node',
},
... or, if it doesn't work, ...
module.exports = function (wallaby) {
return {
...
env: {
type: 'node',
runner: 'C:\\Program Files\\nodejs\\node.exe'
},
... |
Thank you, removing the However, I still need to keep:
inside of the |
Ok, at least it now works. require('child_process').fork('', [], {execPath: 'node1'}) to your init script, restart Atom. You should see require('child_process').fork('', [], {execPath: 'node'}) and restart Atom. Do you see a similar error? |
After googling the issue a bit, it seems that in some cases Atom doesn't have a correct
to your init script instead of |
Here are my findings:
does indeed produce an error message, whereas the same with
That said, I added this line to the
instead of setting |
Great find! I have only been trying to pass the Anyway, thanks a lot for your help, the issue is fixed in the core v1.0.215. Note that after the core update (even if you force it), you'll need to restart Atom. Once updated you may remove the |
The issue has been completely solved with core v1.0.215. Thanks a lot. Note: I've observed that on my laptop, everything has always been working fine, even if there too, |
Great, thanks again for your help! |
After getting back from vacations, I wanted to work on my projects, but somehow some recent software update broke my environment (I had several Windows Updates, Visual Studio 2015 Update 2 installed, updated Atom plugins, etc.).
First symptom
I always get the message Can not start node.js process (node), make sure your system has node.js installed.
However, I've got node.js configured in my PATH environment variable:
and
where node.exe
returns the expectedC:\Program Files\nodejs\node.exe
.Adding this to
init.coffee
for Atom gets rid of the message Can not start node.js process (node), make sure your system has node.js installed, but obviously, it should not be required:Second symptom
Having Wallaby.js not complaining when I click on
Start
in the Wallaby.js panel does not help a lot, as I get stuck with the spinning wheel in the bottom right corner of the Atom editor, and nothing more happens.Using atom 1.6 on Windows 7 x64.
All my previously working projects seem dead (e.g. /~https://github.com/epsitec-sa/electrum-store/)
The text was updated successfully, but these errors were encountered: