The CLI is not accepting a package dependency which exists higher up in the node_modules directory structure.
cylon, cylon-gpio and cylon-tessel all have node-namespace as a dependency.
NPM installs node-namespace in the cylon-tessel node_modules and shares that dependency between cylon and cylon-gpio. The CLI however will not accept this shared node-namespace dependency and is expecting to find it in the node_modules directory of each cylon and cylon-gpio.
cylon, cylon-gpio and cylon-tessel all have this setting in their package.json
"hardware": {
"*": true,
"./": true
},
so the cli should pick up everything.
Here's the output of my tessel push as well as my npm ls
$ tessel push index.js
TESSEL! Connected to /dev/ttyACM0.
fs.js:654
return binding.readdir(pathModule._makeLong(path));
^
Error: ENOENT, no such file or directory '/home/adrian/development/hybridgroup/cylon/cylon-tessel-example/node_modules/cylon-tessel/node_modules/cylon/node_modules/node-namespace'
at Object.fs.readdirSync (fs.js:654:18)
at Object.readdirRecursiveSync (/home/adrian/development/tessel/cli/node_modules/effess/effess.js:19:18)
at list (/home/adrian/development/tessel/cli/node_modules/hardware-resolve/index.js:68:10)
at /home/adrian/development/tessel/cli/node_modules/hardware-resolve/index.js:112:26
at Array.forEach (native)
at list (/home/adrian/development/tessel/cli/node_modules/hardware-resolve/index.js:111:27)
at /home/adrian/development/tessel/cli/node_modules/hardware-resolve/index.js:112:26
at Array.forEach (native)
at list (/home/adrian/development/tessel/cli/node_modules/hardware-resolve/index.js:111:27)
at /home/adrian/development/tessel/cli/node_modules/hardware-resolve/index.js:112:26
The CLI is not accepting a package dependency which exists higher up in the node_modules directory structure.
cylon
,cylon-gpio
andcylon-tessel
all havenode-namespace
as a dependency.NPM installs
node-namespace
in thecylon-tessel
node_modules and shares that dependency betweencylon
andcylon-gpio
. The CLI however will not accept this sharednode-namespace
dependency and is expecting to find it in the node_modules directory of eachcylon
andcylon-gpio
.cylon
,cylon-gpio
andcylon-tessel
all have this setting in theirpackage.json
so the cli should pick up everything.
Here's the output of my tessel push as well as my npm ls