node.js - NPM package-lock.json causes npm install to fail on Linux -


so updated npm on mac , generated lock file on project. "hey - that's great" , commit it. build fails on travis ci following:

compiling frontend assets npm warn optional skipping optional dependency: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm warn notsup skipping optional dependency: unsupported platform fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm err! linux 4.4.0-83-generic npm err! argv "/home/travis/.nvm/versions/node/v7.4.0/bin/node" "/home/travis/.nvm/versions/node/v7.4.0/bin/npm" "install" npm err! node v7.4.0 npm err! npm  v4.0.5 npm err! shasum check failed /tmp/npm-9017-ad78fe01/registry.npmjs.org/hawk/-/hawk-3.1.3.tgz npm err! expected: 078444bd7c1640b0fe540d2c9b73d59678e8e1c4 npm err! actual:   282a21cacac687357d149e149c408a3c0506695c npm err! from:     https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz npm err!  npm err! if need help, may report error at: npm err!     <https://github.com/npm/npm/issues> npm err! please include following file support request: npm err!     /home/travis/build/project/npm-debug.log make: *** [frontend] error 1 

it's symfony project use npm scss, js compiling , copying images , fonts etc web directory. i'm projecting has differences in packages osx & linux - have experienced before image processing package.

or due version of npm travis using here?

i have 5.3.0 on local machine now.

or don't understand lock file npm? it's trying validate packages installed...

my package.json looks this. issue dependency of dependency. i'm wondering if should .gitignore lock file if it's going cause kind of conflict. , i'm not sure if need start down route of making sure versions of node , npm identical across platforms run builds.

{   "name": "project",   "version": "1.0.0",   "description": "project",   "main": "index.js",   "scripts": {      ... front end build scripts   },   ... ,   "devdependencies": {     "autoprefixer": "^7.1.2",     "bulma": "^0.5.1",     "chokidar-cli": "^1.2.0",     "cssnano": "^3.10.0",     "font-awesome": "^4.7.0",     "jquery": "^3.2.1",     "jshint": "^2.9.5",     "mkdirp": "^0.5.1",     "node-sass": "^4.5.3",     "npm-run-all": "^4.0.2",     "postcss-cli": "^4.1.0",     "uglifyjs-folder": "^1.1.0"   } } 

please try removing package-lock.json , node_modules , running npm i again. npm cache or other random deviations may @ fault.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -