hantsy / nestjs-rest-sample

NestJS RESTful APIs Sample
https://hantsy.github.io/nestjs-rest-sample/
GNU General Public License v3.0
420 stars 98 forks source link

npm 安装报错 #317

Closed CasbaL closed 3 years ago

CasbaL commented 3 years ago

Development Environment:

Describe the bug npm install error

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @types/mongoose@5.10.3.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'nestjs-sample'
npm ERR! notarget 

To Reproduce npm install

Additional context

yarn可以安装成功

github-actions[bot] commented 3 years ago

Hello @CasbaL, thank you for your interest in this repo! Please follow the Bug Report template to fill out the steps to reproduce the issues. Thanks again.

CasbaL commented 3 years ago

image

CasbaL commented 3 years ago

额。yarn 安装的版本不对; image 还是跑不起来 image

hantsy commented 3 years ago

I have used a CI configuration to ensure the project config working well, till now there is no breaking reporting there.

Please try the following steps.

  1. remove node_modules.
  2. make sure you are using the official Npm registries, as I know many NPM mirrors will delay syncing the packages for days.
  3. run npm install in the project root folder. If you are using Windows, try to run as Administrator.

if it is still failed, try to remove the package lock file which is always synced to the latest versions, and reinstall. Good luck.

hantsy commented 3 years ago

See the build log: https://github.com/hantsy/nestjs-sample/actions?query=workflow%3ABuild

hantsy commented 3 years ago

@CasbaL any update?

CasbaL commented 3 years ago

@CasbaL any update?

换了官方镜像可以了,是taobao源的问题