Skip to content

Instantly share code, notes, and snippets.

@majindageta
Last active June 24, 2019 13:27
Show Gist options
  • Save majindageta/ea7194e04061fb2073270524a83c9caa to your computer and use it in GitHub Desktop.
Save majindageta/ea7194e04061fb2073270524a83c9caa to your computer and use it in GitHub Desktop.
Verificare accesso al repository npm registry desiderato (esempio: http://npmregistry.ideasolutions.it/)
Da terminale nella cartella del progetto, aggiungere un file .npmrc dove all'interno c'è l'indirizzo del registry:
Esempio: @sgtv:registry=http://npmregistry.ideasolutions.it
Da terminale aggiungere l'account npm adduser --registry {indirizzo}
in fase di registrazione usare la mail senza @ sostituendola con ..
per pubblicare: npm publish {nomeProgetto} --registry {indirizzo}
per rimuovere: npm unpublish {nomeProgetto}@{versione} --registry {indirizzo}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment