Skip to main content

Wijmo のバージョンを固定してインストールする方法(旧バージョン指定)

なぜ必要?

  • npm install @grapecity/wijmo すると最新バージョンがインストールされる
  • 契約期間内のバージョンで使用する場合はバージョンを固定する必要がある

対応内容

バージョン固定してインストールするだけ

例:

bash
npm install @grapecity/wijmo@5.20221.857 --save-exact
npm install @grapecity/wijmo.grid@5.20221.857 --save-exact
npm install @grapecity/wijmo.styles@5.20221.857 --save-exact
npm install @grapecity/wijmo.react.input@5.20221.857 --save-exact

npm install @grapecity/wijmo.react.grid@5.20221.857 --save-exact
npm install @grapecity/wijmo.react.grid.filter@5.20221.857 --save-exact

関連1. 適用されているバージョンの確認

package.json を見る

例:

package.json
"@grapecity/wijmo": "5.20221.857",
"@grapecity/wijmo.grid": "5.20221.857",
"@grapecity/wijmo.react.all": "5.20221.857",
  • ^5.20221.857 ← これだと「以上」という指定になってしまう?
  • 5.20221.857

関連2. 公開されているバージョンの一覧を確認

bash
npm view @grapecity/wijmo versions

関連3. package.json に設定されたバージョンで再構成

bash
rm -rf node_modules package-lock.json
npm install