Skip to content
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

Using npm 3.2.x + on Azure? #1

Closed
ztsmith opened this issue Oct 12, 2015 · 8 comments
Closed

Using npm 3.2.x + on Azure? #1

ztsmith opened this issue Oct 12, 2015 · 8 comments

Comments

@ztsmith
Copy link

ztsmith commented Oct 12, 2015

It seems the npm version 3.1.x has problems with node-gyp that affects various packages e.g. babel:

Npm 3.2.x (or 3.3.x) fixes the issue but it's not available on Azure web apps yet. The only availble version of npm3 is 3.1.0.
I need npm 3.x for the flattened dependencies, but can't use the current version so appear to be stuck at this point.
Any ideas of how this can be worked around? e.g. manually install a local copy of NPM and use that?

@felixrieseberg
Copy link
Owner

Thanks for reporting! There's an obvious fix: We should just update npm on Azure Web Apps ;-)

@davidebbo Can you (or someone in your team) push the latest npm?

@davidebbo
Copy link

So the latest 3.3.6 would be good?

Any idea why the latest Node 4.2 is still pointing to 2.14.7 and not some 3.x version?

@felixrieseberg
Copy link
Owner

Yeah, that version would be good. npm is still testing npm 3 - it's super stable, but the Windows-friendly change to install modules flat (and the new multistage installer) could lead to some issues for module developers, so they're giving people some time to adjust to the change.

On Azure, we should probably stick with 2.x as the default, but make the latest 3.x available (because it has so many benefits on Windows)

@davidebbo
Copy link

Ok, I'll get 3.3.6 deployed.

@davidebbo
Copy link

Ok, 3.3.6 is now available in Azure Web Apps.

@lijunle
Copy link

lijunle commented Oct 13, 2015

I still see the nodejs/node-gyp#661 with 3.3.6 on Azure. 😢

@ztsmith
Copy link
Author

ztsmith commented Oct 13, 2015

Thanks @davidebbo and @felixrieseberg for the super quick response and action - I have been able to move forward now.

@lijunle Try clearing out your node_modules folder and then re-running npm install

@ztsmith ztsmith closed this as completed Oct 13, 2015
@lijunle
Copy link

lijunle commented Oct 13, 2015

@ztsmith Thank you very much! Delete the node_modules folder and re-deploy works great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants