LoginSignup
6
6

More than 5 years have passed since last update.

npmとbowerのassertパッケージについて

Posted at

先日書いたpower-assertの環境を整える記事で、assert.jsをnpmではなくbowerでインストールしました。

bower install assertで落ちてくるのはこのリポジトリです。

https://github.com/jgallen23/assert

power-assertが依存しているのもこのパッケージです。

しかしnpm install assertで落ちてくるのはこちらです

https://www.npmjs.org/package/assert
https://github.com/defunctzombie/commonjs-assert

githubのリポジトリ名を見てもらえばわかりますが、もともとCommonJS向けに書かれたパッケージのようで、bowerで落ちてくるものとは完全に別物です。

同名のパッケージでもnpmとbowerで違うものが落ちてくることがあるという事例でした。気をつけないといけないですね。

6
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6