npm install produces different lock files on mac os and windows


(Marvin Heilemann) #1

When my colleague is installing npm modules he got a different lock file then mine. His has some dependencies with an optional flag where mine has not. That is causing a diff in git.

npm -v -> 6.4.1
node -v -> 8.12.0

package.json:

{  
  "devDependencies": {
    "archiver": "^2.1.1",
    "autoprefixer": "^8.6.5",
    "babel-core": "^6.26.3",
    "babel-loader": "^7.1.5",
    "babel-preset-env": "^1.7.0",
    "browser-sync": "^2.24.7",
    "browser-sync-webpack-plugin": "^2.2.2",
    "chalk": "^2.4.1",
    "clean-webpack-plugin": "^0.1.19",
    "css-loader": "^0.28.11",
    "cssnano": "^4.1.0",
    "downloads-folder": "^1.0.1",
    "eslint": "^5.5.0",
    "eslint-loader": "^2.1.0",
    "exports-loader": "^0.7.0",
    "expose-loader": "^0.7.5",
    "file-loader": "^1.1.11",
    "imports-loader": "^0.8.0",
    "mini-css-extract-plugin": "^0.4.2",
    "node-notifier": "^5.2.1",
    "node-sass": "^4.9.3",
    "optimize-css-assets-webpack-plugin": "^4.0.3",
    "postcss-loader": "^2.1.6",
    "resolve-url-loader": "^2.3.1",
    "sass-loader": "^7.1.0",
    "style-loader": "^0.21.0",
    "uglifyjs-webpack-plugin": "^1.3.0",
    "uniqid": "^5.0.3",
    "url-loader": "^1.1.1",
    "webpack": "^4.18.0",
    "webpack-build-notifier": "^0.1.29",
    "webpack-cli": "^3.1.0",
    "webpack-stream": "^4.0.3"
  },
  "dependencies": {
    "bootstrap": "^4.1.3",
    "datatables.net": "^1.10.19",
    "datatables.net-bs4": "^1.10.16",
    "featherlight": "^1.7.13",
    "he": "^1.1.1",
    "ionicons": "^4.4.3",
    "ionicons-npm": "^2.0.1",
    "isotope-layout": "^3.0.6",
    "jquery": "^3.3.1",
    "jquery-ui": "^1.12.1",
    "lodash": "^4.17.10",
    "mark.js": "^8.11.1",
    "modernizr": "^3.6.0",
    "owl.carousel": "^2.3.4",
    "plyr": "^3.4.3",
    "popper.js": "^1.14.4",
    "progressbar.js": "^1.0.1",
    "stickybits": "^3.5.4",
    "toastr": "^2.1.4"
  }
}


(Marvin Heilemann) #2

Mac OS 10.14 Beta (18A384a)
Windows 7


(system) #3

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.