Cannot install with Node 12
xlport opened this issue · 3 comments
Is this a bug report?
Yes:
Running npm i -g create-elm-app
fails
Environment
node -v
: v12.2.0npm -v
: 6.9.0npm ls create-elm-app -g
(if you haven’t ejected): N/A- Operating system: Windows 10
Steps to Reproduce
- Use Node v12.2.0
- Run
npm i -g create-elm-app
Expected Behavior
Succesful installation
Actual Behavior
[...]
> binwrap-install
fs.js:27
const { Math, Object } = primordials;
^
ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (C:\Users\PeterAlbert\AppData\Roaming\npm\node_modules\create-elm-app\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\Users\PeterAlbert\AppData\Roaming\npm\node_modules\create-elm-app\node_modules\natives\index.js:55:10)
[....]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elm@0.19.0 install: `binwrap-install`
npm ERR! Exit status 1
[...]
This seems to be a problem with the unzip
dependency, see this issue for instance
As this happens on Windows, using nvm
to switch to v11 is not an option unfortunately.
I investigated this further - the root cause is the package "elm": "^0.19.0"
, referenced in "elm-webpack-loader". Looks like this PR would solve it...
Here's the underlying issue: elm-community/elm-webpack-loader#170
Hello @xlport!
Thank you for reporting this, I've been looking into this issue in the loader for some time.
It might be a little slow with releases during the summer, so I went ahead and updated it directly in CEA dependencies.
Long story short, the issue should be resolved for now in the latest release
Please feel free to reopen this if you have further questions.