Code Monkey home page Code Monkey logo

Comments (8)

dylang avatar dylang commented on August 20, 2024

Wow, great find! I jump between node versions too and haven't seen this issue.

Are you using nvm or n to choose the node version?

With n the node_modules directory is shared across node versions which can cause weird problems.

Can you do a which npm-check and npm-check --version on each of them?

from npm-check.

dylang avatar dylang commented on August 20, 2024

screen shot 2015-10-14 at 5 35 10 pm
screen shot 2015-10-14 at 5 34 08 pm
screen shot 2015-10-14 at 5 33 28 pm

from npm-check.

dylang avatar dylang commented on August 20, 2024

Also, I have known outdated dependencies at --depth=3 and --depth=7 and node-check misses them. I tested by randomly picking a module at various depths

The goal of npm-check is to see what in your package.json could be updated, it doesn't check the dependencies of the packages you depend on. I might add a recursive option, but it's going to take a long time to query the registry for hundreds of modules so I'm not sure how useful it will be.

from npm-check.

CelticParser avatar CelticParser commented on August 20, 2024

Thnx for getting back quickly. I am using nvm. Which = /home/ubuntu/workspace/node_modules/.bin/npm-check with all three Node releases and 4.0.3 is the same as well.

Could it be a npm version issue? didn't think to test that 'til now. I am running on 2.14.7. Also run your test using $ npm-check. I see in your screen shots you used $ npm-check -u. It's prevalent if you drop the interactive mode.

from npm-check.

CelticParser avatar CelticParser commented on August 20, 2024

The goal of npm-check is to see what in your package.json could be updated, it doesn't check the dependencies of the packages you depend on. I might add a recursive option, but it's going to take a long time to query the registry for hundreds of modules so I'm not sure how useful it will be.

I miss understood and I thought it was running too fast.

Adding a --recursive flag would be a huge enhancement being the sole purpose of us using this module is for security checking. I realize it would take a long while to run thru everything but it would flag obsolete modules. Them we can sift thru them and investigate if they may have had vulnerabilities. We have a tool for that too but it only works if its in the nps database (I'm an advocate for redundancy testing).

Also, adding a print to log while using --recursive would be going above and beyond. Then our TODO.md generator can sniff the log for use later.

Keep me posted and let me know if you want me to open another issue (enhancement request) related to this.

Thnx -j

from npm-check.

dylang avatar dylang commented on August 20, 2024

with all three Node releases and 4.0.3 is the same as well

It sounds like you might have your prefix hardcoded in the npmrc, which was a common practice before nvm.

If you don't want to do that, you can try re-installing with each version of node to see if it fixes the problem, however I just tried your setup and didn't have your issue.

Can you tell me what registry you are using for each version of node?

npm config get registry

It's just strange that the error is that it can't get to the registry.

If you'd like to discuss the recursive option further can you open a new issue to keep them separated?

from npm-check.

dylang avatar dylang commented on August 20, 2024

I'm going to close this as it doesn't seem like an issue with npm-check. Feel free to leave more feedback if you figure out what was not working.

from npm-check.

CelticParser avatar CelticParser commented on August 20, 2024

I sent a PM to your public email.

from npm-check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.