Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamilmielnik/fuck-npm
Removes "node_modules" & runs "npm install"
https://github.com/kamilmielnik/fuck-npm
npm
Last synced: 7 days ago
JSON representation
Removes "node_modules" & runs "npm install"
- Host: GitHub
- URL: https://github.com/kamilmielnik/fuck-npm
- Owner: kamilmielnik
- License: mit
- Created: 2018-04-17T15:39:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T14:40:32.000Z (over 2 years ago)
- Last Synced: 2023-12-27T19:04:53.956Z (about 1 year ago)
- Topics: npm
- Language: JavaScript
- Homepage:
- Size: 431 KB
- Stars: 22
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fuck-npm
![Version](https://img.shields.io/github/package-json/v/kamilmielnik/fuck-npm)
![License](https://img.shields.io/npm/l/fuck-npm)
![Node version](https://img.shields.io/node/v/fuck-npm)
![Dependencies](https://img.shields.io/librariesio/github/kamilmielnik/fuck-npm)
![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/kamilmielnik/fuck-npm)
![Prettier](https://github.com/kamilmielnik/fuck-npm/workflows/Prettier/badge.svg)## Description
This command line tool will remove `node_modules` directory & run `npm install`. Useful when you're desperate.### Windows (NFTS) - "Source Path Too Long" error
`fuck-npm` has been tested against the following error on Windows:> The source file name(s) are larger than is supported by the file system.
> Try moving to a location which has a shorter path name, or try renaming
> to shorter name(s) before attempting this operation.## Installation
```Shell
npm install -g fuck-npm
```## Usage
```Shell
# go to your project directory
cd ~/projects/my-project# remove "node_modules", and then run "npm install"
fuck-npm# remove "node_modules" & "package-lock.json", and then run "npm install"
fuck-npm aslkjdals # pass any parameter (just mash your keyboard!)
```