npm install fails on windows
attilah opened this issue · comments
When installing react project under windows it fails with this error:
C:\Windows\system32>npm install -g create-react-project
C:\Users\Attila\AppData\Roaming\npm\create-react-project -> C:\Users\Attila\AppData\Roaming\npm\node_modules\create-react-project\index.js
create-react-project@0.0.22 postinstall C:\Users\Attila\AppData\Roaming\npm\node_modules\create-react-project
./scripts/postinstall.js
'.' is not recognized as an internal or external command,
operable program or batch file.
I think that adding "node" in front of the postinstall command will make it cross platform.