为什么bootstrap-vue要求我手动安装jquery和webpack,即使我已将它们全局安装?

时间:2019-01-07 16:50:05

标签: node.js vue.js npm webpack vue-cli

Im通过运行命令使用vue-cli设置新的bootstrap-vue项目 vue init bootstrap-vue/webpack-simple my-project

每次启动新项目时,都必须手动在下面的输出中安装所有依赖项。 我想念什么吗?

我已经使用npm install -g webpack在全球安装了jquery / webpack等,但是每当我运行命令时,我都会得到以下输出:

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is 
installed. You must install peer dependencies yourself.
npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0- 
beta || ^2.2.0-rc but none is installed. You must install peer 
dependencies 
yourself.
npm WARN bootstrap@4.2.1 requires a peer of jquery@1.9.1 - 3 but none is 
installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 
(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: 
{"os":"win32","arch":"x64"})

我对理解npm和js依赖关系管理还很陌生,而且每次我创建一个新项目时都没有道理,我必须手动下线并手动安装各种依赖关系。我想念什么吗?

0 个答案:

没有答案