Giter Site home page Giter Site logo

Add support for npm v9 about npm HOT 7 CLOSED

Mitchell-Mulder avatar Mitchell-Mulder commented on July 25, 2024
Add support for npm v9

from npm.

Comments (7)

travi avatar travi commented on July 25, 2024

This plug-in defines a direct dependency on npm in order to avoid mismatches like this. The dependency has not yet been updated to use npm v9.

If you are finding that npm is being used from your environment rather than the one installed into node_modules at runtime, that is a bug. Would you be willing to investigate why that command is not using the proper version?

from npm.

travi avatar travi commented on July 25, 2024

Considering that execa is correctly provided with the preferLocal flag, the most likely situation you have is that another one of your dependencies is also installingnpm directly.

Are you running semantic-release with npx or installing as a dependency? If installing as a dependency, try checking for other instances with npm ls npm

from npm.

travi avatar travi commented on July 25, 2024

after further investigation, this situation should only be present if you are using the legacy (less secure) auth option. if you switch to using modern token auth, this problem would be resolved for you. is there any reason that is not an option for you, @Mitchell-Mulder?

from npm.

crudo avatar crudo commented on July 25, 2024

Related to #574

from npm.

crudo avatar crudo commented on July 25, 2024

Related to #558

from npm.

emilfjellstrom avatar emilfjellstrom commented on July 25, 2024

For now, you can run the npm config fix command right before you release

sh 'npm config fix' 
sh 'yarn release' 

from npm.

travi avatar travi commented on July 25, 2024

For now, you can run the npm config fix command right before you release

our dependence on npm has already been updated to npm v9, but that came with the removal of support for legacy auth. if your project is still using legacy auth, you should migrate to token auth instead

from npm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.