Giter Site home page Giter Site logo

Comments (5)

milesj avatar milesj commented on July 17, 2024 1

So the default setting was reverted in npm 9.4.2. Might explain why my system settings were changed. Moral of the story; careful when updating npm 😆

Gotta love it.

npm changing this setting was probably my first thought and downgrading probably would have helped.

Glad you got this sorted! Will close this for now.

from moon.

milesj avatar milesj commented on July 17, 2024

@snspinn moon doesn't actually manage the node_modules folder, so any linking happening is being done by npm.

The dependencyVersionFormat setting just controls what the version format is for dependencies in package.json, so you should see stuff like file:../path/to/package. Are you seeing file: entries?

from moon.

snspinn avatar snspinn commented on July 17, 2024

@milesj I was afraid that might be the case but thought I'd put this here anyway to see if anyone had an answer. I appreciate you responding regardless.

Yes, I am seeing file: entries like this:

"dependencies": {
    "my-package": "file:../../../libraries/package",
     ...
  },

I don't seem to be able to find detailed documentation on how npm works so apologies for my ignorance. Have a few debugging steps in mind now. Will report back if I find a fix.

from moon.

snspinn avatar snspinn commented on July 17, 2024

I've tried a few things such as upgrading npm but no change yet. Will try downgrading npm at some point.

For now I have found a work around:
After doing the npm install...

cd <working-dir>/node_modules
cp -rL package/ package-tmp #Copy dir with dereference 
rm -r package/
mv package-tmp/ package/

from moon.

snspinn avatar snspinn commented on July 17, 2024

Found a comment under a discussion here npm/cli#6033 (comment) that has given me a fix for now.

I ran npm config set install-links=true which allowed me to run my npm install tasks again (can't think of when this flag would have been changed). It leads me to wonder: I have a locally installed npm and an npm installed with proto. Do all installs of npm share this config set or is there a way to set them private to proto installed tools?

✗ npm --version
9.8.1
✗ proto list npm
10.8.1

Additional

So the default setting was reverted in npm 9.4.2. Might explain why my system settings were changed. Moral of the story; careful when updating npm 😆

from moon.

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.