Open dragonliuhu opened 5 years ago
不行就用yarn
不行就用
yarn
应该是vue版本问题吧。 不支持vue3,不知道什么时候可以有基于vue3的
FROM node:10.16.3-alpine
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /usr/app/
WORKDIR /usr/app/
COPY package.json ./
RUN npm install --no-cache --registry=https://registry.npm.taobao.org
COPY ./ ./
CMD ["npm","run","dev"]
使用Docker构建镜像也和题主一样的错误,不知道哪儿需要的git,真是服了,找了很久没找到。
安装cnpm后,使用cnpm install成功了
不行就用
yarn
vue版本问题。不支持高版本。希望能够出新版本的
FROM node:10.16.3-alpine RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN mkdir -p /usr/app/ WORKDIR /usr/app/ COPY package.json ./ RUN npm install --no-cache --registry=https://registry.npm.taobao.org COPY ./ ./ CMD ["npm","run","dev"]
你看看是不是版本不对vue
tui-editor 依赖这个。 可以暂时先去掉。
多看看错误信息,已经告诉你了 runjs@4.4.2,这个包被重命名为 tasksfile 了,你需要在 package.json 里把 "runjs": "4.4.2", 删掉,单独运行 npm install tasksfile,然后再运行 npm install 就可以安装成功了
安装cnpm后,使用cnpm install成功了
多看看错误信息,已经告诉你了 runjs@4.4.2,这个包被重命名为 tasksfile 了,你需要在 package.json 里把 "runjs": "4.4.2", 删掉,单独运行 npm install tasksfile,然后再运行 npm install 就可以安装成功了
I get these error messages on the console when I build the container:
npm WARN deprecated runjs@4.4.2: This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated microcli@1.3.3: This project has been renamed to @pawelgalazka/cli . Install using @pawelgalazka/cli instead
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated microargs@1.1.2: This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazka/cli-args instead
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
I have same issue. Somebody fix it ?
按照官网步骤安装,尝试过npm install 和 npm install --registry=https://registry.npm.taobao.org,都报错