I am trying to install an Elm-d3 connector I found on Github.
- Elm is a functional-reactive programming language Evan Czaplicki
- d3.js is the popular graphics meta-library by Michael Bostock
Elm-d3 enables you create type-safe, composable widgets using HTML, SVG, and CSS. D3 acts as a conceptual basis for the library, as well as an alternative renderer for Elm.
The first two install instructions are:
npm install smash
make
Installing smash goes smoothly (although I have to use sudo)
npm http GET https://registry.npmjs.org/smash
npm http 304 https://registry.npmjs.org/smash
npm http GET https://registry.npmjs.org/queue-async
npm http GET https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/queue-async
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
[email protected] ../../../node_modules/smash
├── [email protected]
└── [email protected] ([email protected])
However after installing I can't seem to refer to smash, which merges Javascript files together into one.
$ smash
bash: smash: command not found
I don't think node.js is actually used anywhere, just organized by npm. Why can't I find smash after installing it?
When I try to run make I get related errors:
make: node_modules/.bin/smash: Command not found
make: Nothing to be done for `all'.
node_modules/.bin/smash; and if it exists that the file that the symlink points to is executable by your user? - seliopounpm -g install smashI can find smash but make saysmake: node_modules/.bin/smash: Command not foundand alsoelm --src-dir=src --make -o src/D3.elm. I am reading the Makefile it says a bunch of interesting things - john mangualnode_modules/.bin/smashto say justsmashin the makefile and it ran. moving forward :) - john mangualnpm install ...a module, and you don't have either A. anode_modulesfolder OR B. apackage.jsonfile in that directory, npm looks up your directory tree starting at the current directory and installs it in the first location that satisfies A or B. Try usingnpm initto create a package.json file, and then try thenpm install smashmakeand see if that works. - jshanley