这两天我一直在尝试解决这个问题,但没有效果:
我尝试过的解决方案包括:
npm i一部分rm -rf node_modules/)这是指向 SO 上同一问题的另一个主题的链接,该主题似乎也很突出:链接
我已经回顾了关于这个问题的一系列讨论,但没有特别的效果,我认为我别无选择。任何见解表示赞赏
我正在尝试使用以下命令更新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
我使用的是 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) 当我要使用 . 出现此错误。请大家告诉我如何解决这个问题。
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)