Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Missing packages after first npm install #10985

Closed
benoitvallon opened this issue Dec 30, 2015 · 4 comments
Closed

Missing packages after first npm install #10985

benoitvallon opened this issue Dec 30, 2015 · 4 comments

Comments

@benoitvallon
Copy link

After the first npm install on my project, some packages are missing. After the second run, all the packages are here. The project is this one react-native-nw-react-calculator

node: v5.3.0
npm: ok with 3.3.9, nok with 3.3.10, still nok with 3.5.3

Here is a sample of the package tree after install, with npm 3.3.9 I got the slash and shebang-regex packages which I don't get with 3.3.10 or the last version (3.5.3)

npm 3.3.9
├-┬ babel-core@6.3.26 
 :  : 
│├── private@0.1.6 
│├── shebang-regex@1.0.0 
│├── slash@1.0.0 
│└── source-map@0.5.3
npm 3.3.10 or 3.5.3
├-┬ babel-core@6.3.26 
 :  :
│├── private@0.1.6 
│└── source-map@0.5.3

I managed to find the commit introducing the bug deps: When we replace/upgrade a dep, remove all its deps too but I am a little stuck to go further and fix the bug.

If anyone could help me with this, I would be happy to fix it.

@benoitvallon
Copy link
Author

Here are the logs in travis for different version of npm and node https://travis-ci.org/benoitvallon/react-native-nw-react-calculator

We can see that it works great with npm 3.3.6 for example. The behavior appears in 3.3.10 but there is no errors at install, only packages are missing.

@Hikingyo
Copy link

Hikingyo commented Jan 4, 2016

I have the same problem with npm 3.3.12 on travis and on my own computer.
On my computer, I should to execute several times npm install to have all the packages install.

@benoitvallon
Copy link
Author

Still having the issue with npm v3.6.0

topheman referenced this issue in topheman/d3-react-experiments Feb 9, 2016
npm3 fails to install some dependencies, which broke the build on node 5 / npm3. Previously fixed CI here 28fbbc0

Found a better way by installing missing dependencies at postinstall hook (better for end user).

Got the same bug here: topheman/react-es6-redux@cc80eb5
@npm-robot
Copy link

We're closing this issue as it has gone thirty days without activity. In our experience if an issue has gone thirty days without any activity then it's unlikely to be addressed. In the case of bug reports, often the underlying issue will be addressed but finding related issues is quite difficult and often incomplete.

If this was a bug report and it is still relevant then we encourage you to open it again as a new issue. If this was a feature request then you should feel free to open it again, or even better open a PR.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

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

No branches or pull requests

4 participants