Skip to content

npm start failed on debian #2

Open
@cyclonmaster-zz

Description

@cyclonmaster-zz

I cannot run the demo on Beaglebone debian 7.9
This is the error:

root@beaglebone:~/Desktop/zigbeer/zigbee-demo# npm start

[email protected] start /root/Desktop/zigbeer/zigbee-demo
cross-env NODE_ENV=production node main

/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:70
var envVars = Object.assign({}, process.env);
^
TypeError: Object function Object() { [native code] } has no method 'assign'
at getEnvVars (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:70:24)
at getCommandArgsAndEnvVars (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:50:17)
at crossEnv (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/index.js:23:31)
at Object. (/root/Desktop/zigbeer/zigbee-demo/node_modules/cross-env/dist/bin/cross-env.js:10:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)

npm ERR! [email protected] start: cross-env NODE_ENV=production node main
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the zigbee-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production node main
npm ERR! You can get their info via:
npm ERR! npm owner ls zigbee-demo
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.13-bone79
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /root/Desktop/zigbeer/zigbee-demo
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/Desktop/zigbeer/zigbee-demo/npm-debug.log
npm ERR! not ok code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions