1

我已经在 VS 2017 中通过 Solutions Package Manager 安装了 bower。我显然想使用它。

我很困惑,因为这只在新的 .bin 文件夹中创建了 cmd 文件(节点、bower 和 git)。没有组件文件夹或 json 或其他任何东西。

我应该在某个地方运行 bower init(在哪里?命令行)。当我尝试这样做时,它会询问我一个 'name' 。我应该给什么名字?那会是凉亭 json 文件或组件文件夹名称或其他名称吗?它还会问什么其他问题?

我发现的所有凉亭手册都说要进行安装,然后再进行包的凉亭安装(我猜是从命令行吗?)

我在哪里执行“凉亭搜索”?

https://bower.io/

另一方面,当我尝试在 nuget 控制台中运行此命令(在我从解决方案管理器安装 Bower 包之前)时:

npm install -g bower

我收到一个错误:

npm : npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD 
projects. Currently there's no migration path but we hope you'll help us figure out one.
At line:1 char:1
+ npm install -g bower
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (npm WARN deprec...figure out one.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
4

0 回答 0