Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
344 views
in Technique[技术] by (71.8m points)

installation - How would you execute npm install with a specific version from the nexus repo

How to execute npm install with a specific version from the nexus repo?

My artifacts are stored in Nexus. what I need to do is execute npm install <nexus version>. However when I do this it still uses my latest package.json that I committed. I want to use all artifacts including package.json from the version in my nexus repo.

question from:https://stackoverflow.com/questions/65868356/how-would-you-execute-npm-install-with-a-specific-version-from-the-nexus-repo

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Using npm via NXRM behaves the same as using npm without NXRM as far as installs go. You can use npm install package@version.

So for example, npm install [email protected].

See npm install doc for more details.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...