1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

package-lock.json の name プロパティに差分が出る

Posted at

TL;DR

npm を 7.20.6 以降に更新する。

現象

複数で開発をしていて、チェックアウト直後に npm install すると、別の人がコミットした package-lock.json に対して次のような1行だけの差分が出る。

 {
   "name": "test",
   "version": "1.0.0",
   "lockFileVersion": 2,
   "requires": true,
   "packages": {
     "": {
+        "name": "test",
         "version": "1.0.0",
         ...

情報

解決例

npm install -g npm@7.20.6
1
0
0

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?