2017-04-03 17 views

उत्तर

4

The next tag is used by some projects to identify the upcoming version.By default, other than latest, no tag has any special significance to npm itself.

NPM Documentation

0

विशेष रूप से, और प्रलेखन के अनुसार मैं इस उपयोगी पाया:

By default, the latest tag is used by npm to identify the current version of a package, and npm install (without any @ or @ specifier) installs the latest tag. Typically, projects only use the "latest" tag for stable release versions, and use other tags for unstable versions such as prereleases.

The next tag is used by some projects to identify the upcoming version.

By default, other than latest, no tag has any special significance to npm itself.

तो, उदाहरण के लिए, मैं खुद NPM ERR पैदा NPM से संबंधित कुछ मुद्दों पर था! त्रुटि: EACCES: पैकेज प्रतिष्ठानों पर अनुमति नहीं दी त्रुटियों, कि मैं पहली बार (5.4.0 से) NPM के पिछले संस्करण पर वापस जाकर ठीक किया:

npm install -g [email protected] 

लेकिन NPM भी उन संकुल में से एक है कि उपयोग करता है उनके वितरण में "अगले" टैग, तो नवीनतम में इस बात का लाभ लेने के लिए नहीं बल्कि आधिकारिक तौर पर "स्थिर संस्करण", आप भी चला सकते हैं:

npm install -g [email protected] 

कौन सा स्थापित 5.5.1

रनिंग: npm show npm versions --json निम्नलिखित संस्करण इतिहास को दिखाता है कि वास्तव में क्या स्थापित किया गया था: [... "5.3.0", "5.4.0", "5.4.1", "5.4.2", " 5.5.0 ", " 5.5.1 " ]

संबंधित मुद्दे