Skip to content

Instantly share code, notes, and snippets.

@watilde
Created June 30, 2017 10:22
Show Gist options
  • Save watilde/ee528c7e4d3685c62fdfdb584ce8e39d to your computer and use it in GitHub Desktop.
Save watilde/ee528c7e4d3685c62fdfdb584ce8e39d to your computer and use it in GitHub Desktop.

Before

$ rm package-lock.json && npm i
npm notice created a lockfile as package-lock.json. You should commit this file.
npm notice optional SKIPPING OPTIONAL DEPENDENCY: c@file:../c (node_modules/c):
npm notice notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for c@1.0.0: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})

After

$ rm package-lock.json && npm i
npm notice created a lockfile as package-lock.json. You should commit this file.

$ rm package-lock.json && npm i --loglevel info
npm info it worked if it ends with ok
npm info using npm@5.0.4
npm info using node@v8.1.0
npm info lifecycle d@1.0.0~preinstall: d@1.0.0
npm info linkStuff d@1.0.0
npm info lifecycle d@1.0.0~install: d@1.0.0
npm info lifecycle d@1.0.0~postinstall: d@1.0.0
npm info lifecycle d@1.0.0~prepublish: d@1.0.0
npm info lifecycle d@1.0.0~prepare: d@1.0.0
npm info lifecycle undefined~preshrinkwrap: undefined
npm info lifecycle undefined~shrinkwrap: undefined
npm notice created a lockfile as package-lock.json. You should commit this file.
npm info lifecycle undefined~postshrinkwrap: undefined
npm info optional SKIPPING OPTIONAL DEPENDENCY: c@file:../c (node_modules/c):
npm info notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for c@1.0.0: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm info ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment