Worked on a project and encountered the "cannot specify node_path" error, consulted #145 #106, but did not work. Later found out it occured because I had whitespaces in some of the paths. A quick fix would be to remove/replace the whitespace. Alternatively, to allow whitespaces, modify the runWebPackSync.js by adding and replacing the following:
var pathString = [webPackPath, path, outPath, configPath].map(x => {return '\"' + x + '\"'});
var webPackStdOut = (0, _child_process.execSync)(['node', pathString[0], pathString[1], pathString[2], '--config', pathString[3], '--bail'].join(' '));
My local node_modules path was something like .\Capstone Project\Project\node_modules, and it worked fine.
Worked on a project and encountered the "cannot specify node_path" error, consulted #145 #106, but did not work. Later found out it occured because I had whitespaces in some of the paths. A quick fix would be to remove/replace the whitespace. Alternatively, to allow whitespaces, modify the runWebPackSync.js by adding and replacing the following:
var pathString = [webPackPath, path, outPath, configPath].map(x => {return '\"' + x + '\"'});var webPackStdOut = (0, _child_process.execSync)(['node', pathString[0], pathString[1], pathString[2], '--config', pathString[3], '--bail'].join(' '));My local node_modules path was something like .\Capstone Project\Project\node_modules, and it worked fine.