Comments (5)
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.
@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.
@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.
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.
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)
- [feature] ignore cache but still validate changes in inputs? HOT 6
- [feature] Support Remote Execution API for caching HOT 3
- [bug] moon does not keep formatting of package.json when updating toolchain version. HOT 5
- [bug] Failed to run `moon docker setup` HOT 10
- [bug] includeProjectReferenceSources seems to cause typecheck failure HOT 4
- [feature] Support `bun install --frozen-lockfile` in moon commands HOT 2
- [bug] `./` (dot-slash) prefix in `projects` does not work HOT 1
- [feature] Add an option to avoid touching the `packageManager` field in `package.json` HOT 3
- [feature] Allow opting out of the `yarnPath` for the yarn package manager HOT 4
- [feature] Add an ability to specify command per OS
- [bug] Command output (stdout and stderr) is not printed on system task error HOT 2
- [feature] support post processing on commands that modify files HOT 5
- [bug] Using `MOON_OUTPUT_STYLE=buffer-only-failure` still outputs cached steps HOT 2
- [bug] Output messages are being buffered aggressively HOT 2
- [bug] Bun `installArgs` are not being used by Node when bun is the `packageManager` HOT 1
- [bug] GIT hooks synchronization not working on windows under git bash HOT 1
- [bug]. moon is not installing packages if it has a local cache saved
- [bug] Typescript Project References are created for unnecessary implicit dependencies
- [feature] Possibility to give names to dependent tasks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moon.