-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SED not installed windows machine #1
Comments
Hi Tom, Thanks for this issue raised. Wasn't able to properly test this on a windows machine. Can you try removing the |
That does not work fully. There is still an error in the I assume removing the flag also involves removing the webpack.config.js argument? Which I did, but obviously won't help on the postinstall. If I fixed that myself and then ran So I am unsure about the two package.json scripts you have there : In fact, when I place the src folder of the repo in a fresh newly baked ionic angular project (and add QR scanner), all works fine. That package.json in the fresh ionic project does not have those lines. And looking at your code, I also don't see a need for them. So I guess you can remove them from the repo? Why were they added in the first place? crypto support? Where are the crypto lines in the code? - ain't much going on in the code, lots of todos in the comments :) |
|
HI,
your package.json relies on SED to be installed on the local machine, which is not default the case on win10 machines
"postinstall": "sed -i \"\" -E 's/node: false/node:{stream:true,crypto:true}/' node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js"
Removing the lines in package.json allows to run
npm i
, but notionic serve
.Replacing line 91 in browser.js as per sed script (
node:false
tonode:{stream:true,crypto:true}
also does not give joy runningionic serve
`
[ERROR] npm has unexpectedly closed (exit code 1).
`
The text was updated successfully, but these errors were encountered: