After creating an npm link
within a local dependency and then deleting that dependency from my hard drive, I am now attempting to remove this npm link
.
I have attempted the following steps:
npm rm --global dependency
npm uninstall dependency
npm unlink --no-save dependency
Despite going through these actions and removing the code from my hard drive, the npm link dependency
command still works when executed in my main project. How can I properly delete it? Here is my package.json
:
{
"name": "myproject",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack serve",
"build": "webpack --mode production"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"copy-webpack-plugin": "^9.0.1",
"d3-array": "^3.0.1",
"d3-dsv": "^3.0.1",
"d3-format": "^3.0.1",
"d3-scale": "^4.0.0",
"d3-time-format": "^4.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.3.5"
},
"devDependencies": {
"@types/d3-array": "^3.0.1",
"@types/d3-dsv": "^3.0.0",
"@types/d3-format": "^3.0.1",
"@types/d3-scale": "^4.0.1",
"@types/d3-time-format": "^4.0.0",
"@types/react-dom": "^17.0.9",
"html-webpack-plugin": "^5.3.2",
"ts-loader": "^9.2.3",
"webpack": "^5.44.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2"
}
}