-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Cannot run npm install
on a newly-cloned repository
#13123
Comments
It looks like the changes introduced in #12792 / d3de006 will delete the user's I'm assuming that NPM v3.x doesn't add this file before the I'm not sure what the original intent was here, so I can't recommend a fix. |
I don't see how the changes on #12792 could cause this issue. The only thing that would make sense, would be if somehow the underlying file created with I am clueless here :( @schmod, can you reproduce it consistently ? I have only tried on npm v2.x, but I would be surprized if it tuned out to be npm-specific. |
I just did a fresh clone of the repo on another computer with NPM 3.3.9, and duplicated the issue. It appears that this is NPM-specific, as NPM's docs only seem to promise that a package's This may be the same issue as npm/npm#9916, although I suspect that very few packages are depending on the NPM lifecycle functioning this way. tl;dr; Angular's |
I confirm that it doesn't work with npm v3.3.9. It seems that the @IgorMinar, any insight on this ? This should also affect ng2 (but I haven't tried it). |
It looks like Node 5.0.0 will be shipping soon, and will be bundled with NPM 3.6.6. |
This happens indeed with ng2 as well (node v4.2.1, npm v3.3.9). |
Whatever version, i didn't download npm package success :( |
@huguangju, this issue specifically tracks issues with npm v3.x. |
Is there a workaround to this issue? |
@wbrycki, you could try commenting out the "scripts": {
//"preinstall": "node scripts/npm/check-node-modules.js --purge",
... That's causing one problem for sure. I'm not sure if there are other problems (e.g. dependencies incompatibility issues), but you can give it a shot. |
just restart you computer and try again to intalling npm by cmd |
We've since switched to node 6 and npm 3, so this should work now |
To be precise, we're now on Node 6 and Yarn, not npm 3. |
Running
npm install
on a freshly-cloned repository fails, and leaves nonode_modules
folder intact:NPM v3.3.8; Node 4.2.1; Ubuntu 15.04
The text was updated successfully, but these errors were encountered: