-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
npm install fails on fresh project #4126
Comments
Here is the full terminal output from creating a project until the problem
|
I downgraded to these versions of Node and npm and the problem was resolved.
I'm keeping this open as the problem still exists with latest Node JS. Thank you. |
I think the issue is not with the framework but with frontend tooling. You can read more information here. |
It also looks like |
Maybe the patch to update webpack to v5 would fix this: #4054 |
This seems like indeed the issue. Phoenix 1.6 Changelog suggests As a newcomer to this community, sorry if this is not the right forum but what's the timeline on that release? |
The issue is in the message |
If I am reading this correctly, this issue can be closed as it is fixed in #4198. |
I'll chime in to note that node installed via homebrew on my Big Sur machine today was version
Until 1.6 is release, could we get some notes on the required workaround added? I'm a RoR dev full time, so stuff like this really trips newbies like me up. brew install node@14
brew link --overwrite node@14 |
I'm still having this issue if I try to use the https://hexdocs.pm/phoenix/installation.html#content. Every time I get to the npm install steps it fails, and I can't compile any front end assets. To fix it, I matched all the dependencies at the top of this issue, then made sure my node version was 14 and it worked. |
Same here. I did a fresh install. Didn't work. Here's what I did to make the install work.
|
Using node v15.6.0 and npm v7.4.0 worked for me. But npm is showing some vulnerabilities though Edit: when i was about to start the project with "mix phx.server" i had a problem with Node-Sass. Searching for the problem i found that node-sass does not support node v15. So i had to downgrade to v14. |
Agree with @duffyjp. I think it is silly that explicit version dependency on NodeJS version is not specified in package.json. For comparison, Ruby's Gemfiles let you declare the Ruby version which is expected. Terrible experience for beginners - given that |
if you use the tip of |
https://twitter.com/josevalim/status/1417017859847475201 for those of you who aren't aware of the details on removing the dependency. |
how to delete the node modules and re-installing? |
@Vibha6419 delete the |
Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93). |
I am not sure because I don’t develop on Linux.
…On Oct 18, 2021, 11:04 AM -0400, Vibha6419 ***@***.***>, wrote:
Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93).
I have these versions; ***@***.***, ***@***.*** and ***@***.***
What should i Do?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Thanks, you save my life. |
Environment
Expected behavior
npm install should succeed after creating a new project with
mix phx.new kalda --live
Actual behavior
npm install fails with this message
Here is the package.json
Thank you
The text was updated successfully, but these errors were encountered: