

So I think it should be a problem with the update mechanism of nexus to the proxy, but I can’t find where to configure it. At this time, the latest version of the dependency package exists in the official repository, but does not exist in the nexus repository. It will look for the latest version of the dependency package by itself.

My npm package.json and package-lock.json does not specify the version of the dependent package, the default is the latest version. At this time, I checked that the dependency package of this version did exist on the official website, and it was a new version that was updated a few hours ago, but this package was not synchronized in the nexus warehouse. However, some of them cannot be downloaded, and a 404 error is reported. Open the package.json file and add the following property and value after the name property to configure the project for ESM modules. When I install some dependencies using NPM, Most npm dependent packages can be downloaded normally. npm install mssql swagger-ui-express yamljs Install the development package used in the sample code in this article: Bash Copy npm install -save-dev dotenv Open the project in Visual Studio Code. Use nexus as the repository of npm, and nexus points to the official repository of npm.
