How does npm update packages installed from github?

has been successfully installed into node_modules through npm install https://github.com/username/-sharp-sharp-sharp.git-d
, but there is no relevant key name in package.json, but it can be used normally
if the code in my local node_modules is updated by the warehouse address of this github, how will the code in my local node_modules be updated?
doesn"t seem to be solved with npm update. Can it only be uninstall and then install?

Feb.28,2021

  1. should be -D instead of -d . My side of the test can be installed and can be added to the package.json.
  2. The
  3. upgrade hasn't been tried yet, but I think npm update is OK.

add upstairs, npm update code needs to be updated, so npm update is OK.


dependent version upgrade

The version of each dependency is recorded in

package.json. If you want to update the dependency, you can use npm update, but after this update, the version number of the new version of the dependency will not be updated in package.json. Use the following update to save to the configuration file

npm update -S
npm update -D

I just ran into the same problem.

"vue_xxx": "git+git",

this is how I write in dependency.
then execute

regardless of installation or update
npm install vue_xxx

that's all right.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb04e-39df0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb04e-39df0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?