安装 Bootstrap 需要各种依赖,这里面咋没写?

$ npm install bootstrap-sass --save
npm WARN ajv-keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@8.0.0 requires a peer of webpack@^4.36.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@8.0.0 requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@8.0.0 requires a peer of sass@^1.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@8.0.0 requires a peer of fibers@>= 3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

  • bootstrap-sass@3.4.1
    updated 1 package in 6.758s
讨论数量: 6

Administrator@PC201710231221 MINGW64 /e/phpStudy/WWW/Code/vuejs-essential
$ npm install bootstrap-sass --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

  • bootstrap-sass@3.4.1
    updated 1 package in 6.85s

这个fsevents是Mac的 win跟linux是不支持的,我等屁民用不起Mac,这玩意儿还怎么玩?为啥会有这种东西?

4年前 评论

file
这个目录是有的啊,为啥找不到呢?

4年前 评论

node-sass 和 sass-loader 版本要配合好。

3年前 评论
你看我吊吗啊 2年前

你稍微翻一下前面的讨论写的版本,按照他的提示安装就不会报错了
windows 环境搭建填坑(踩到坑的进来看看)

2年前 评论

bootstrap-sass 必须安装3.4.1版本,安装更高版本会无法编译通过。

1年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!