小编lme*_*vil的帖子

如何在 alpine:3.9 上安装 Node 8.15?

我想在 alpine:3.9 上安装节点 8.15

这是我的 Dockerfile,但它不起作用。

在 docker build 之后,我收到此错误:您需要运行“nvm install default”来安装它,然后才能使用它。

谢谢。

FROM alpine:3.9

ENV METEOR_VERSION=1.8.1
ENV METEOR_ALLOW_SUPERUSER true
ENV NODE_VERSION 8.15
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
ENV NVM_DIR /usr/local/nvm

RUN mkdir $NVM_DIR

# Install dependencies
RUN apk update
RUN apk upgrade
RUN apk add --no-cache bash
RUN apk --no-cache add curl

# Install NVM
RUN curl -o- "https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh" | bash

# Install NODE
RUN echo "source $NVM_DIR/nvm.sh && \
    nvm install $NODE_VERSION && \
    nvm alias default …
Run Code Online (Sandbox Code Playgroud)

dockerfile

5
推荐指数
1
解决办法
4638
查看次数

reactstrap - create-react-app - not found bootstrap/dist/css/bootstrap.css - v.4

我是新手.我正在尝试使用bootsrap 4创建一个react应用程序.我正在使用reactstrap,接下来的步骤:

create-react-app my-app

npm install bootstrap --save

npm install --save reactstrap@next react react-dom
Run Code Online (Sandbox Code Playgroud)

在src/index.js文件中导入Bootstrap CSS:import'bootstrap/dist/css/bootstrap.min.css';

但是,当我启动我的应用程序时,我收到此错误:

编译失败.

./src/index.js找不到模块:无法解析'D:\ React\my-app2\src'中的'bootstrap/dist/css/bootstrap.css'

我曾经在CDN中使用bootstrap,你知道,在我的html页面中, 链接rel ="stylesheet"...等和脚本src =""......等.但是使用reactstrap,js文件在哪里?(jquery,popper,bootstrap)(当我运行npm install bootstrap时,它们都在一起--save?)

谢谢

reactjs bootstrap-4 reactstrap

4
推荐指数
1
解决办法
2174
查看次数

标签 统计

bootstrap-4 ×1

dockerfile ×1

reactjs ×1

reactstrap ×1