You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As raised in #7, currently the symlinking process of placing index.html into the public/ folder requires Admin privileges on Windows.
This is not ideal. This file should not be modified and ideally be connected to the flex-plugin dependency. Since the current build script is based on react-scripts which enforces the presence of public/index.html, we need to have it present. An alternative solution is to force copy the file in on every npm start.
The text was updated successfully, but these errors were encountered:
According to this nodejs/node-v0.x-archive#8936, the symlinkSync doc is wrong as it's defining the parameters in the wrong order.
I didn't manage to test that on a Windows machine but my suggestion is to replace fs.symlinkSync(indexHtmlSource, indexHtmlTarget);
with fs.symlinkSync(indexHtmlTarget, indexHtmlSource);
in packages/react-app-rewire-flex-plugin/lib/index.js
Those seem to be old pre 1.0 docs of Node. It might actually be a legacy Node.js issue. @viperguynaz is running 8.12 which shouldn't have this issue: nodejs/node#18518
My guess is that npm creates the node_modules folder with some other permissions. I don't have a Windows machine around right now but I'll try to see if I can get someone to repro it for me.
As raised in #7, currently the symlinking process of placing
index.html
into thepublic/
folder requires Admin privileges on Windows.This is not ideal. This file should not be modified and ideally be connected to the
flex-plugin
dependency. Since the current build script is based onreact-scripts
which enforces the presence ofpublic/index.html
, we need to have it present. An alternative solution is to force copy the file in on every npm start.The text was updated successfully, but these errors were encountered: