Skip to content

Whitespace in Windows 10 path possible workaronud #363

Description

@kunzhang1110

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions