Closed Mandera closed 1 year ago
npm install ./name
and npm link ./name --save
pip list
repos@ C:\Python\general\repos
`-- genvector@0.0.2 -> .\genvector
npm link ./name
pip list
C:\Python\general\repos
+-- @babel/code-frame@7.18.6 extraneous
+-- @babel/helper-validator-identifier@7.19.1 extraneous
+-- @babel/highlight@7.18.6 extraneous
...
+-- genvector@0.0.2 extraneous -> .\genvector
"name": "repos",
to the top of the package-lock.json that is /inside/ node_modules (there are two and both install and link has it)npm link ./name
adds a global link
At least as of npm 5, installing a folder now creates a symlink, not a copy. See [docs.npmjs.com/cli/install](https://docs.npmjs.com/cli/install)
I don't understand why they would force to symlink with install, isn't that what link was for? Oh well moving on - I'll just do install in workflowCalling npm install / link name
and name exists in cwd will install that local package, but not it's dependencies??
Cannot find why that is. Let's stick with npm install / link ./name
npm install C:\Python\general\repos\genvector
becomes '-- genvector@0.0.2 -> .\genvector
so we don't need to bother with prefixing relative paths with ./
which would only work when node_modules was above the package anyway
All this testing was done on v16, updated to v18 now - Also removed the scope warning
npm link
when inside a repo will install all dependencies locally and create a global link to itselfnpm unlink name
, this will remove global linknpm link name
will link a global package link to local modules..\..\..\..\..\Users\ricka\AppData\Roaming\npm\node_modules\genlibrary
npm link
npm link name
for every repoinstall(editable=True)
should just handle thisnpm link
in package foldernpm link / install name