Comments (2)
This is on purpose. npm has no way of knowing that workspace isn't the real svelte
package. The audit ecosystem is keyed by name, that's how it works. If I installed lodash from its git repo I'd still expect the same warnings as if I'd installed from the npm registry.
Scopes (aka @namespace/package
) are the solution to name collisions like this, it's highly recommended you utilize them.
from cli.
@wraithgar Please can I suggest that you review and expand the documentation for workspaces because it makes no mention of this behaviour - indeed, the examples show this exact usage without mentioning the potential for conflict.
Also your mention of 'namespaces' is unhelpful because this doesn't appear to be terminology used by npm - it uses 'scopes'. I actually can't reconcile what you've said with the scopes documentation and how that impacts how I would use workspaces.
What I was trying to do here was segment a project where I'm evaluating different dev frameworks - I've not intention of publishing. Perhaps workspaces is the wrong way to go about this and I'm misusing npm.
from cli.
Related Issues (20)
- [BUG] npm ci --dry-run deletes node_modules folders HOT 1
- [BUG] <title>BUG
- BUG[BUG] <title>
- [BUG] cannot star a module HOT 3
- npm install fails on first attempt with 403 error when accessing Azure Artifacts, succeeds on second attempt HOT 2
- npm doesnt create node_modules or package-lock.json in workspaces HOT 1
- [BUG] Error on prebuild-install HOT 1
- [BUG] npm install <git remote url> when git group/namespace starts with a number HOT 2
- [BUG] `npx` doesn’t consider globally installed namespaced packages HOT 5
- [BUG] Incorrect dependencies installed when installing from tarball HOT 2
- [BUG] <title>
- [BUG] login with otp will get 404 HOT 1
- [BUG] RHEL 8 npm conflicts between attempted installs of npm-1:9.8.1-1.18.18.2.1.module+el8.8.0+20407+c11d40bd.x86_64 and nsolid-18.19.1-ns5.0.5.x86_64
- Getting an error while running or making a new React app I have also connected with NPM support, but their solution has not worked for me. My ticket ID is 2492208.
- [BUG] audit signatures Internal Server Error "Buffer is not defined" HOT 3
- [Needed] NPM Mirrors Error - Request for Additional Mirrors HOT 1
- [BUG] Inconsistent `npm install` behaviour with prerelease versions of dependencies HOT 8
- Issue with scss imports in npm workspaces HOT 2
- THROW ERR: npm config set @something:registry http://something.com HOT 2
- [BUG] Too many parallel network connections open while installation HOT 12
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 cli.