I found out that WWD is not installing the correct embedded Node on Windows when Eclipse is installed in a directory that is writable only by Administrators, such as C:\Program Files.
I think the problem is when NodeJSManager probes valid install locations.
if (directory.exists() && directory.isDirectory()
&& directory.canWrite() && directory.canExecute()) {
return true;
}
In Windows, canWrite does not check the actual ACL but only the "read-only" flag of the directory.
The solution seems quite simple: use the NIO isWritable method.
java.nio.file.Files.isWritable(directory.toPath())
I found out that WWD is not installing the correct embedded Node on Windows when Eclipse is installed in a directory that is writable only by Administrators, such as
C:\Program Files.I think the problem is when
NodeJSManagerprobes valid install locations.In Windows,
canWritedoes not check the actual ACL but only the "read-only" flag of the directory.The solution seems quite simple: use the NIO
isWritablemethod.