相关疑难解决方法(0)

“npm install”挂在窗台上:idealTree build

这两天我一直在尝试解决这个问题,但没有效果:

在此输入图像描述

我尝试过的解决方案包括:

  • 删除 package-lock.json 文件
  • 与项目中的其他开发人员协调以调整 Node.js 版本并重新安装整个框架
  • 使用 --verbose 作为命令的npm i一部分
  • 编辑环境变量以将 NPM 添加到其中
  • 删除“node_modules”文件夹(带有rm -rf node_modules/
  • 禁用然后重新启用 SSH
  • 尝试启用和不启用 VPN
  • 通过命令行清除缓存,即上面的node_modules步骤

这是指向 SO 上同一问题的另一个主题的链接,该主题似乎也很突出:链接

我已经回顾了关于这个问题的一系列讨论,但没有特别的效果,我认为我别无选择。任何见解表示赞赏

node.js

45
推荐指数
4
解决办法
7万
查看次数

错误的ERR!错误:连接ECONNREFUSED

我正在尝试使用以下命令更新npm(节点包管理器):npm install npm @ latest -g但是我在命令提示符中收到以下错误:

有人知道这是什么意思吗?

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "npm@latest" "-g"

npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED xxx.xxx.xx.xxx:xxx
npm ERR!     at Object.exports._errnoException (util.js:1022:11)
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激.

谢谢你nickJS

node.js npm npm-install

13
推荐指数
2
解决办法
4万
查看次数

docker-compose 使用 getaddrinfo EAI_AGAIN 抛出错误registry.npmjs.org

背景:

我使用的是 Ubuntu 20.04。我正在尝试使用 docker-compose 构建图像。

这是我的docker-compose文件

version: "3.8"

services:     
    web:
        build: ./frontend
        network_mode: "host"
        ports: 
            - 3000:3000
    api:
        build: ./backend
        network_mode: "host"
        ports: 
            - 3001:3001
        environment: 
            DB_URL: mongodb://db/foo-app
    db:
        image: mongo:4.0-xenial
        ports: 
            - 27017:27017
        volumes:
            - foo-app-data:/data/db

volumes:
    foo-app-data: 
Run Code Online (Sandbox Code Playgroud)

下面是我的两个Dockerfile文件:

# ./backend file

FROM node:16.3.0-alpine3.13

RUN addgroup app && adduser -S -G app app
WORKDIR /app

USER root
COPY package*.json ./

# --- debug try
RUN npm cache clean --force
RUN npm config set registry …
Run Code Online (Sandbox Code Playgroud)

node.js npm docker docker-compose

6
推荐指数
1
解决办法
4608
查看次数

npm 错误!此运行的完整日志可以在以下位置找到:

当我要使用 . 出现此错误。请大家告诉我如何解决这个问题。

e$ ng new angular-the-basics
  create angular-the-basics/e2e/app.e2e-spec.ts (300 bytes)
  create angular-the-basics/e2e/app.po.ts (208 bytes)
  create angular-the-basics/e2e/tsconfig.e2e.json (235 bytes)
  create angular-the-basics/karma.conf.js (923 bytes)
  create angular-the-basics/package.json (1302 bytes)
  create angular-the-basics/protractor.conf.js (722 bytes)
  create angular-the-basics/README.md (1032 bytes)

  create angular-the-basics/src/app/app.component.css (0 bytes)
Installing packages for tooling via npm.
npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated uws@9.14.0: stop using this version

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You …
Run Code Online (Sandbox Code Playgroud)

angular

4
推荐指数
3
解决办法
30万
查看次数

标签 统计

node.js ×3

npm ×2

angular ×1

docker ×1

docker-compose ×1

npm-install ×1