Skip to content

[BUG] Cannot install with NPM #91

@molobaba

Description

@molobaba

Describe the bug
Run 'npm install' and cannot install dependencies.
Here is the cmd output:

nup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'D:\\工作月度整理\\2024-04\\参考DBGPT代码\\DB-GPT-Web\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'D:\工作月度 整理\2024-04\参考DBGPT代码\DB-GPT-Web\node_modules\next\dist\compiled'] {       
npm WARN cleanup       errno: -4048,    
npm WARN cleanup       code: 'EPERM',   
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'D:\\工作月度整理\\2024-04\\参考DBGPT代码\\DB-GPT-Web\\node_modules\\next\\dist\\compiled' 
npm WARN cleanup     }
npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmmirror.com/zustand/-/zustand-4.5.0.tgz failed, reason: connect ETIMEDOUT 182.242.63.201:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

To Reproduce
Steps to reproduce the behavior:

  1. Move into project folder.
  2. Run npm install

Expected behavior
Dependencies can be installed and then build static files with npm run compile

Screenshots
Not available.

Desktop (please complete the following information):
Microsoft Windows 11 10.0.22000

Smartphone (please complete the following information):
[ X ]
Additional context
Nodejs and NPM version:
nodejs - v20.12.2
npm - 10.5.0
which satisfied the requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions