5 Replies Latest reply on May 21, 2015 4:14 AM by mhahn

    Failed to build Edison image using bitbake, npm install failed during do_compile

    jcai

      I downloaded edison-src-ww18-15.tgz and followed the User Guide to build the image, specifying dl_dir and sstate_dir. After about an hour, the build fails with following log:

       

      | npm verb fetch to= /tmp/npm-25360-JGp8aqbB/registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz

      | npm http GET http://registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz

      | npm http 200 http://registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz

      | npm ERR!

      | npm ERR! Additional logging details can be found in:

      | npm ERR!     /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git/npm-debug.log

      | npm ERR! not ok code 0

      | WARNING: /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/temp/run.do_compile.24893:1 exit 1 from

      |   npm --arch=i586 --verbose install

      | ERROR: Function failed: do_compile (log file is located at /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/temp/log.do_compile.24893)

      ERROR: Task 1015 (/home/jzcai/edison/edison-src/poky/meta-intel-iot-middleware/recipes-devtools/iotkit-comm-js/iotkit-comm-js_0.1.1.bb, do_compile) failed with exit code '1'

       

      Any help is appreciated.

        • 1. Re: Failed to build Edison image using bitbake, npm install failed during do_compile
          Intel_Peter

          Hello jcai,

           

          Looks like there's something got wrong while compiling a package. Could you attach the error log located at /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/temp/log.do_compile.24893?

           

          Peter.

          • 2. Re: Failed to build Edison image using bitbake, npm install failed during do_compile
            jcai

            Hi Peter,

             

            Please see log file blow. Cannot seem to attach a file.  

             

            Thanks

            ====================================================

            DEBUG: Executing shell function do_compile

            npm info it worked if it ends with ok

            npm verb cli [ 'node',

            npm verb cli   '/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm',

            npm verb cli   '--arch=i586',

            npm verb cli   '--verbose',

            npm verb cli   'install' ]

            npm info using npm@1.4.28

            npm info using node@v0.10.35

            npm WARN package.json iotkit-comm@0.2.0 No repository field.

            npm verb readDependencies using package.json deps

            npm verb install where, deps [ '/home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git',

            npm verb install   [ 'mdns2',

            npm verb install     'mqtt',

            npm verb install     'zmq',

            npm verb install     'commander',

            npm verb install     'read',

            npm verb install     'async',

            npm verb install     'chai',

            npm verb install     'istanbul',

            npm verb install     'jsdoc',

            npm verb install     'mocha' ] ]

            npm info preinstall iotkit-comm@0.2.0

            npm verb readDependencies using package.json deps

            npm verb cache add [ 'mdns2@>=2.1.3', null ]

            npm verb cache add name=undefined spec="mdns2@>=2.1.3" args=["mdns2@>=2.1.3",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'mdns2@%3E=2.1.3',

            npm verb parsed url   path: 'mdns2@%3E=2.1.3',

            npm verb parsed url   href: 'mdns2@%3E=2.1.3' }

            npm verb cache add [ 'mqtt@0.3.13', null ]

            npm verb cache add name=undefined spec="mqtt@0.3.13" args=["mqtt@0.3.13",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'mqtt@0.3.13',

            npm verb parsed url   path: 'mqtt@0.3.13',

            npm verb parsed url   href: 'mqtt@0.3.13' }

            npm verb cache add name="mdns2" spec=">=2.1.3" args=["mdns2",">=2.1.3"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '%3E=2.1.3',

            npm verb parsed url   path: '%3E=2.1.3',

            npm verb parsed url   href: '%3E=2.1.3' }

            npm verb addNamed [ 'mdns2', '>=2.1.3' ]

            npm verb addNamed [ null, '>=2.1.3' ]

            npm verb cache add name="mqtt" spec="0.3.13" args=["mqtt","0.3.13"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '0.3.13',

            npm verb parsed url   path: '0.3.13',

            npm verb parsed url   href: '0.3.13' }

            npm verb addNamed [ 'mqtt', '0.3.13' ]

            npm verb addNamed [ '0.3.13', '0.3.13' ]

            npm verb cache add [ 'zmq@>=2.6.0', null ]

            npm verb cache add name=undefined spec="zmq@>=2.6.0" args=["zmq@>=2.6.0",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'zmq@%3E=2.6.0',

            npm verb parsed url   path: 'zmq@%3E=2.6.0',

            npm verb parsed url   href: 'zmq@%3E=2.6.0' }

            npm verb cache add [ 'commander@*', null ]

            npm verb cache add name=undefined spec="commander@*" args=["commander@*",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'commander@*',

            npm verb parsed url   path: 'commander@*',

            npm verb parsed url   href: 'commander@*' }

            npm verb cache add [ 'read@*', null ]

            npm verb cache add name=undefined spec="read@*" args=["read@*",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'read@*',

            npm verb parsed url   path: 'read@*',

            npm verb parsed url   href: 'read@*' }

            npm verb cache add [ 'async@*', null ]

            npm verb cache add name=undefined spec="async@*" args=["async@*",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'async@*',

            npm verb parsed url   path: 'async@*',

            npm verb parsed url   href: 'async@*' }

            npm verb cache add [ 'chai@*', null ]

            npm verb cache add name=undefined spec="chai@*" args=["chai@*",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'chai@*',

            npm verb parsed url   path: 'chai@*',

            npm verb parsed url   href: 'chai@*' }

            npm verb cache add [ 'istanbul@*', null ]

            npm verb cache add name=undefined spec="istanbul@*" args=["istanbul@*",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'istanbul@*',

            npm verb parsed url   path: 'istanbul@*',

            npm verb parsed url   href: 'istanbul@*' }

            npm verb cache add [ 'jsdoc@*', null ]

            npm verb cache add name=undefined spec="jsdoc@*" args=["jsdoc@*",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'jsdoc@*',

            npm verb parsed url   path: 'jsdoc@*',

            npm verb parsed url   href: 'jsdoc@*' }

            npm verb cache add [ 'mocha@*', null ]

            npm verb cache add name=undefined spec="mocha@*" args=["mocha@*",null]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: 'mocha@*',

            npm verb parsed url   path: 'mocha@*',

            npm verb parsed url   href: 'mocha@*' }

            npm verb cache add name="zmq" spec=">=2.6.0" args=["zmq",">=2.6.0"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '%3E=2.6.0',

            npm verb parsed url   path: '%3E=2.6.0',

            npm verb parsed url   href: '%3E=2.6.0' }

            npm verb addNamed [ 'zmq', '>=2.6.0' ]

            npm verb addNamed [ null, '>=2.6.0' ]

            npm verb lock zmq@>=2.6.0 /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/4c854d15-zmq-2-6-0.lock

            npm verb cache add name="commander" spec="*" args=["commander","*"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '*',

            npm verb parsed url   path: '*',

            npm verb parsed url   href: '*' }

            npm verb addNamed [ 'commander', '*' ]

            npm verb addNamed [ null, '*' ]

            npm verb lock commander@* /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/bb4edd54-commander.lock

            npm verb cache add name="read" spec="*" args=["read","*"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '*',

            npm verb parsed url   path: '*',

            npm verb parsed url   href: '*' }

            npm verb addNamed [ 'read', '*' ]

            npm verb addNamed [ null, '*' ]

            npm verb lock read@* /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/78fedecc-read.lock

            npm verb cache add name="async" spec="*" args=["async","*"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '*',

            npm verb parsed url   path: '*',

            npm verb parsed url   href: '*' }

            npm verb addNamed [ 'async', '*' ]

            npm verb addNamed [ null, '*' ]

            npm verb lock async@* /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/827e99f9-async.lock

            npm verb cache add name="chai" spec="*" args=["chai","*"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '*',

            npm verb parsed url   path: '*',

            npm verb parsed url   href: '*' }

            npm verb addNamed [ 'chai', '*' ]

            npm verb addNamed [ null, '*' ]

            npm verb lock chai@* /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/dde1eb4b-chai.lock

            npm verb cache add name="istanbul" spec="*" args=["istanbul","*"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '*',

            npm verb parsed url   path: '*',

            npm verb parsed url   href: '*' }

            npm verb addNamed [ 'istanbul', '*' ]

            npm verb addNamed [ null, '*' ]

            npm verb lock istanbul@* /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/bf589947-istanbul.lock

            npm verb cache add name="jsdoc" spec="*" args=["jsdoc","*"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '*',

            npm verb parsed url   path: '*',

            npm verb parsed url   href: '*' }

            npm verb addNamed [ 'jsdoc', '*' ]

            npm verb addNamed [ null, '*' ]

            npm verb lock jsdoc@* /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/d7dad69b-jsdoc.lock

            npm verb cache add name="mocha" spec="*" args=["mocha","*"]

            npm verb parsed url { protocol: null,

            npm verb parsed url   slashes: null,

            npm verb parsed url   auth: null,

            npm verb parsed url   host: null,

            npm verb parsed url   port: null,

            npm verb parsed url   hostname: null,

            npm verb parsed url   hash: null,

            npm verb parsed url   search: null,

            npm verb parsed url   query: null,

            npm verb parsed url   pathname: '*',

            npm verb parsed url   path: '*',

            npm verb parsed url   href: '*' }

            npm verb addNamed [ 'mocha', '*' ]

            npm verb addNamed [ null, '*' ]

            npm verb lock mocha@* /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/4d0fa87f-mocha.lock

            npm ERR! Error: Attempt to unlock zmq@>=2.6.0, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm ERR! Error: Attempt to unlock commander@*, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm ERR! Error: Attempt to unlock read@*, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm ERR! Error: Attempt to unlock async@*, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm ERR! Error: Attempt to unlock chai@*, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm ERR! Error: Attempt to unlock istanbul@*, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm ERR! Error: Attempt to unlock jsdoc@*, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm ERR! Error: Attempt to unlock mocha@*, which hasn't been locked

            npm ERR!     at unlock (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:32:5)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/cache/add-named.js:41:20

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/lib/utils/locker.js:30:7

            npm ERR!     at cb (/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)

            npm ERR!     at /home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38

            npm ERR!     at Object.oncomplete (fs.js:108:15)

            npm ERR! If you need help, you may report this *entire* log,

            npm ERR! including the npm and node versions, at:

            npm ERR!     <http://github.com/npm/npm/issues>

             

            npm ERR! System Linux 3.13.0-52-generic

            npm ERR! command "node" "/home/jzcai/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/bin/npm" "--arch=i586" "--verbose" "install"

            npm ERR! cwd /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git

            npm ERR! node -v v0.10.35

            npm ERR! npm -v 1.4.28

            npm verb exit [ 1, true ]

            npm verb lock mdns2@>=2.1.3 /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/d54117c0-mdns2-2-1-3.lock

            npm verb lock mqtt@0.3.13 /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/8fccd0fc-mqtt-0-3-13.lock

            npm verb request where is /mdns2

            npm verb request registry http://registry.npmjs.org/

            npm verb request id 584eb2e7c1f06228

            npm verb url raw /mdns2

            npm verb url resolving [ 'http://registry.npmjs.org/', './mdns2' ]

            npm verb url resolved http://registry.npmjs.org/mdns2

            npm verb request where is http://registry.npmjs.org/mdns2

            npm info trying registry request attempt 1 at 11:02:26

            npm http GET http://registry.npmjs.org/mdns2

            npm verb request where is /mqtt

            npm verb request registry http://registry.npmjs.org/

            npm verb url raw /mqtt

            npm verb url resolving [ 'http://registry.npmjs.org/', './mqtt' ]

            npm verb url resolved http://registry.npmjs.org/mqtt

            npm verb request where is http://registry.npmjs.org/mqtt

            npm info trying registry request attempt 1 at 11:02:26

            npm http GET http://registry.npmjs.org/mqtt

            npm http 200 http://registry.npmjs.org/mqtt

            npm verb lock http://registry.npmjs.org/mqtt/-/mqtt-0.3.13.tgz /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/e0e57492-y-npmjs-org-mqtt-mqtt-0-3-13-tgz.lock

            npm verb addRemoteTarball [ 'http://registry.npmjs.org/mqtt/-/mqtt-0.3.13.tgz',

            npm verb addRemoteTarball   'f65fbe323901b664427b471658428dcfa1d5bee4' ]

            npm info retry fetch attempt 1 at 11:02:27

            npm verb fetch to= /tmp/npm-25360-JGp8aqbB/registry.npmjs.org/mqtt/-/mqtt-0.3.13.tgz

            npm http GET http://registry.npmjs.org/mqtt/-/mqtt-0.3.13.tgz

            npm http 200 http://registry.npmjs.org/mqtt/-/mqtt-0.3.13.tgz

            npm http 200 http://registry.npmjs.org/mdns2

            npm verb addNamed [ 'mdns2', '2.1.4' ]

            npm verb addNamed [ '2.1.4', '2.1.4' ]

            npm verb lock mdns2@2.1.4 /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/7e5f66a9-mdns2-2-1-4.lock

            npm verb lock http://registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/npm_cache/e0687be5--npmjs-org-mdns2-mdns2-2-1-4-tgz.lock

            npm verb addRemoteTarball [ 'http://registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz',

            npm verb addRemoteTarball   '8f4e4a533b3b4eaadfbce41a3669795cf7dac9f7' ]

            npm info retry fetch attempt 1 at 11:02:27

            npm verb fetch to= /tmp/npm-25360-JGp8aqbB/registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz

            npm http GET http://registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz

            npm http 200 http://registry.npmjs.org/mdns2/-/mdns2-2.1.4.tgz

            npm ERR!

            npm ERR! Additional logging details can be found in:

            npm ERR!     /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/git/npm-debug.log

            npm ERR! not ok code 0

            WARNING: /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/temp/run.do_compile.24893:1 exit 1 from

              npm --arch=i586 --verbose install

            ERROR: Function failed: do_compile (log file is located at /home/jzcai/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-comm-js/0.1.1-r2/temp/log.do_compile.24893)

            • 3. Re: Failed to build Edison image using bitbake, npm install failed during do_compile
              mhahn

              not sure on the errors. Maybe compare your recipe ith other recipes using npm? e.g. iotkit-agent or xdk-daemon recipes?

              • 4. Re: Failed to build Edison image using bitbake, npm install failed during do_compile
                jcai

                I re-ran the build, it seems to work now. Don't know why it wasn't working before.