Comments (6)
@naresh1054 Please provide steps to reproduce to understand for which situation it's happening.
from cli.
@milaninfy I had a project a long time back, when I came back and tried starting it using the command npm start it started adding a new line in the dependencies section of package.json with key as project name and value as "file:". I am facing the same issue in all of my projects. I tried deleting the lock file along with node_modules but still, the issue was not resolved.
from cli.
you mentioned that all your project is having this issue in the description, is it happening when you do npm install
or when you do script run like npm run start
?
from cli.
It's happening in both scenarios: whether I remove the line from package.json and then run npm install, or simply remove the line from package.json without running any commands, the line gets automatically added back into the file.
from cli.
@naresh1054 Issue seems like unrelated to npm cli, but to be sure Could you please check the same with different version of npm? e.g. if you are using 10.8.2, try with 10.7.0 of some other lower version if it's the same.
from cli.
@naresh1054 , if you are using VS code and installed the extension Red Hat Dependency Analytics disable it for now , for my case it was the problem with their last version (V 0.9.5 )
from cli.
Related Issues (20)
- Feature request: Add config option to prevent accidental installation of packages in directories without package.json HOT 2
- [BUG] npm publish <package-spec> in a workspace is not taking package-spec into account HOT 1
- [BUG] package binaries with .hidden folders don't install globally HOT 1
- [BUG] No lifecycle hooks are run at all HOT 2
- [BUG] `npm update -g ds` removes all global packages and npm itself HOT 1
- [BUG] DevDependancy are installed in production when also marked as peerDependenciesMeta optional HOT 3
- [question] Whether it is possible to upload to npmjs.org manually? HOT 1
- [BUG] `npm outdated --json` doesn't provide distinct workspace packages information HOT 1
- [BUG] git dependencies cause weird behaviour when git is not installed HOT 1
- [BUG] DevDependancy are installed in production when also marked as optional peerDependencies HOT 4
- [BUG] outdated does not report packages in unnamed workspaces HOT 1
- [BUG] Inconsistent audit json
- [BUG] `npm i` does not set `["packages"][""]["name"]` in package-lock.json when there is no name in package.json while `npm audit fix` sets that to project's directory name HOT 5
- [BUG] `npm install` sometimes removes indirect dependencies if a parent node was deleted from the lockfile HOT 2
- [BUG] The .gitignore file is renamed to .npmignore when npm install HOT 1
- [BUG] The package-lock.json file depends on node_modules, which will cause the lock generated by npm i to be inconsistent after the lock file is deleted when some packages that depend on the system architecture (such as node-unix-socket) are installed again. HOT 2
- Start HOT 1
- Align npm packages to npm 10's node engine range
- Problem: CORS Error When Accessing Swagger API Deployed on AWS EC2 HOT 1
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.