Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

stormpath-sdk-angularjs NPM install hangs on Windows 10 #174

Open
WDShannon opened this issue Sep 16, 2016 · 30 comments
Open

stormpath-sdk-angularjs NPM install hangs on Windows 10 #174

WDShannon opened this issue Sep 16, 2016 · 30 comments

Comments

@WDShannon
Copy link

I'm not sure if this is my problem or npm or you, but when I try to npm install this repo it just indefinitely hangs. I am able to install any other npm package without issue. I am on windows 10.

@Doug-Shannon
Copy link

have tried on multiple window machines, it is still failing. There is clearly an issue with the package. Any way around this, it is time sensitive.

@mdeggies
Copy link
Member

@WDShannon and @Doug-Shannon, can you both please post what version of node and npm you're on? We're looking into this!

@Doug-Shannon
Copy link

Hey there, sorry, both above comments were mine, didn't mean to log in with each. Current npm version is 3.9.5 and node version is 6.2.2.

This is failing on our Visual Studio Team Services build server too.

@Doug-Shannon
Copy link

image

this is the NPM output.

@robertjd
Copy link
Member

Hi @Doug-Shannon , I'ved tried to reproduce this on a Windows 10 virtual machine, but haven't had any luck. I'm using the same node and npm versions, installed via nodist, and using the windows command line. The npm install completes as expected for me. Can you tell me what terminal program you're using? Could you see if the logging features in npm give any more details about where the hangup is? Thanks!

@Doug-Shannon
Copy link

So I'm not sure what nodist is, I've only ever installed with the windows MSI directly from the nodejs site: https://nodejs.org/en/download/, this may be a source of the difference. The real problem is that this is causing my build server to hang as well and I don't have a solution for it (I can get by locally by downloading the package manually). As far as terminal, I'm just using command prompt I included the picture above that shows the output of npm, I'll look to see if I can find some other npm debug info.

@Doug-Shannon
Copy link

Any updates on this?

@robertjd
Copy link
Member

Hi Doug, my apologies but I haven't had a chance to try other variations on windows. Can I bother you to open a ticket by contacting [email protected]? Please reference our conversation on this issue. I'd like to have you do a screenshare with someone on our team who is more familiar with windows. Thanks!

@mdeggies
Copy link
Member

Hi @Doug-Shannon -- tried to contact you via [email protected] and on slack, but haven't heard a reply yet. Happy to set up a screenshare to figure out what the problem is. Just let me know! -M

@nbarbettini
Copy link
Member

I've reproduced this on both Windows 8 and Windows 10 with node 6.6.0 and npm 3.10.8 (latest). I think it's a bug in npm, which I posted here: npm/npm#14059

My only other wild guess is a filename that Windows doesn't like for some reason. It hangs on extracting .tmp/build/stormpath-sdk-angularjs.tpls.min.js which certainly doesn't seem like a weird path to me.

@Doug-Shannon
Copy link

The NPM team has not made any movement on this.. Is there a way to package this differently inside so it will work?

@mraible
Copy link
Contributor

mraible commented Oct 21, 2016

@Doug-Shannon Can you try Yarn and see if it works? https://www.infoq.com/news/2016/10/yarn

@Doug-Shannon
Copy link

I've considered yarn, but I am not sure how it will run on our azure build server. I'll give it a try and see how it goes.

@Doug-Shannon
Copy link

Yarn is getting stuck on the stormpath package too.

@Doug-Shannon
Copy link

This has to be something with stormpath, I've had no other packages with this issue.

@mraible
Copy link
Contributor

mraible commented Oct 22, 2016

It works fine for me, what versions of Node and npm are you using? Here's mine:

$ node --version
v4.5.0
$ npm -version
3.10.6

@Doug-Shannon
Copy link

makes no difference, I have tried all sorts. I was on node 6.9.1, npm 3.10.6. Just tried node 4.6.1 with latest npm and it made no difference.

What I don't get is why stormpath is the only npm library I am struggling with. There cannot be much going on that many other libraries aren't doing.

@mraible
Copy link
Contributor

mraible commented Oct 22, 2016

Can you install it via bower?

$ bower install stormpath-sdk-angularjs
bower stormpath-sdk-angularjs#* cached https://github.com/stormpath/stormpath-sdk-angularjs.git#1.1.0
bower stormpath-sdk-angularjs#*         validate 1.1.0 against https://github.com/stormpath/stormpath-sdk-angularjs.git#*
bower angular#>=1.2.*                     cached https://github.com/angular/bower-angular.git#1.5.8
bower angular#>=1.2.*                   validate 1.5.8 against https://github.com/angular/bower-angular.git#>=1.2.*
bower stormpath-sdk-angularjs#^1.1.0     install stormpath-sdk-angularjs#1.1.0
bower angular#>=1.2.*                    install angular#1.5.8

stormpath-sdk-angularjs#1.1.0 bower_components/stormpath-sdk-angularjs
└── angular#1.5.8

angular#1.5.8 bower_components/angular

@mraible
Copy link
Contributor

mraible commented Oct 22, 2016

FWIW, I do see some warnings when running bower install in Travis:

bower not-cached    https://github.com/stormpath/stormpath-sdk-angularjs.git#1.0.0
bower resolve       https://github.com/stormpath/stormpath-sdk-angularjs.git#1.0.0
bower checkout      stormpath-sdk-angularjs#1.0.0
bower invalid-meta  The "main" field cannot contain minified files
bower invalid-meta  The "main" field cannot contain minified files
bower invalid-meta  The "main" field has to contain only 1 file per filetype; found multiple .js files: ["dist/stormpath-sdk-angularjs.min.js","dist/stormpath-sdk-angularjs.tpls.min.js"]
bower resolved      https://github.com/stormpath/stormpath-sdk-angularjs.git#1.0.0
bower install       stormpath-sdk-angularjs#1.0.0

@Doug-Shannon
Copy link

It installs with bower, but we aren't using bower on this project. Any ideas? I'm not sure what goes into building an npm project, but is there another way to accomplish the step that is failing?

@mraible
Copy link
Contributor

mraible commented Oct 22, 2016

What happens when you do this?

git clone https://github.com/mraible/21-points.git
cd 21-points
npm install stormpath-sdk-angularjs

When I do this, I get:

$ npm install stormpath-sdk-angularjs
[email protected] /Users/mraible/dev/21-points
└── [email protected]

@Doug-Shannon
Copy link

image

same thing. I get stuck on that don't care about contents; nuking ....

@mraible mraible changed the title stormpath-sdk-angularjs NPM install hangs stormpath-sdk-angularjs NPM install hangs on Windows 10 Oct 22, 2016
@nbarbettini
Copy link
Member

FWIW @mraible, I was able to reproduce this on Windows but never on Linux or Mac. I don't know what it could be in the package that would cause it.

@Doug-Shannon
Copy link

What are our next steps. Npm seems to have labeled the issue we created as a support issue and not a bug, but this is a big pain point for us.

@mraible
Copy link
Contributor

mraible commented Oct 24, 2016

@Doug-Shannon I'm able to reproduce this on a Windows 10 VM in Parallels Desktop. That's the good news. I suspect it's caused by long filenames, but according to this Stack Overflow thread, many of these issues were fixed in npm 3. I even tried upgrading to npm 4, but that didn't help.

@mraible
Copy link
Contributor

mraible commented Oct 27, 2016

I might've figured out a workaround - installing it directly from GitHub seems to work:

npm install https://github.com/stormpath/stormpath-sdk-angularjs.git --save

This ends up looking like the following in your package.json:

"stormpath-sdk-angularjs": "git+https://github.com/stormpath/stormpath-sdk-angularjs.git"

It seems to point to a particular commit too, but it would be nice if you could point it to a tag.

On a related note, I tried cloning the project (on Windows and Mac) and building the tarball using npm pack. I then tried to install it using npm install stormpath-sdk-angularjs-1.1.0.tgz. It worked on Windows 10, both from the tarball I built on Mac and the one I built on Windows.

@Doug-Shannon
Copy link

Doug-Shannon commented Oct 28, 2016

Is there maybe a corruption in the package hosted on NPM, or is this truly an NPM bug?

Also, the work around should be super helpful, thank you.

@Doug-Shannon
Copy link

so the work around here is an issue because it forces us to be on the latest version, which is breaking our build. Also, I tested it out, using NPM the way it was meant to with storm path STILL HANGS, even on 2.0.

Is there a way to target a specific version?

@Doug-Shannon
Copy link

adding #1.1.1 to the end of "stormpath-sdk-angularjs": "git+https://github.com/stormpath/stormpath-sdk-angularjs.git" allowed me to target that specific commit.

I would still LOVE for this npm issue to be fixed.

@robertjd
Copy link
Member

Hi @Doug-Shannon , thanks for the update. Please continue with that workaround for now, until we can find some time to dig into the cause of the hang. It might require us to start pulling dependencies one-by-one.

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

No branches or pull requests

6 participants