[npm & Bower] npm ERR! Invalid version の対処
セマンティックバージョニング仕様に違反している。
[markdown]
sandbox リポジトリを git clone して npm 叩いたら、以下のエラー。
小一時間はまってしまった。
“`prettyprinted
% npm run
npm ERR! Darwin 15.6.0
npm ERR! argv “/usr/local/Cellar/node/7.0.0/bin/node” “/usr/local/bin/npm” “run”
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! Invalid version: “0.2.4.1”
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!
npm ERR! Please include the following file with any support request:
npm ERR! /Users/***/projects/sandbox-***/npm-debug.log
“`
`0.2.4.1` なんてバージョン番号を付けてはいけなかった。
> * [セマンティック バージョニング 2.0.0 – Semantic Versioning](http://semver.org/lang/ja/)
あー。
> * [Releases · DriftwoodJP/sandbox-es6](https://github.com/DriftwoodJP/sandbox-es6/releases)
`0.2.5` に変更して無事動きました。
git clone 後に毎度変更していて気づかなかった。。。
[/markdown]