fayeli / biojs-vis-bonestagram

DICOM medical image visualisation on the web. Google Summer of Code project with BioJS.
https://bonestagram.herokuapp.com
MIT License
5 stars 3 forks source link

Publish to npm #20

Closed fayeli closed 7 years ago

fayeli commented 8 years ago
sacdallago commented 8 years ago

Installing via npm install npm install biojs-vis-bonestagram gives

$ npm install biojs-vis-bonestagram

> biojs-vis-bonestagram@0.1.0 install /home/chdallago/git/test/node_modules/biojs-vis-bonestagram
> undefined && npm run css

sh: 1: undefined: not found
npm WARN enoent ENOENT: no such file or directory, open '/home/chdallago/git/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.
npm ERR! Linux 3.16.0-77-generic
npm ERR! argv "/home/chdallago/node/bin/node" "/home/chdallago/node/bin/npm" "install" "biojs-vis-bonestagram"
npm ERR! node v6.2.2
npm ERR! npm  v3.9.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! biojs-vis-bonestagram@0.1.0 install: `undefined && npm run css`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the biojs-vis-bonestagram@0.1.0 install script 'undefined && npm run css'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the biojs-vis-bonestagram package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     undefined && npm run css
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs biojs-vis-bonestagram
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls biojs-vis-bonestagram
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/chdallago/git/test/npm-debug.log

Faulty line: https://github.com/fayeli/biojs-vis-bonestagram/blob/master/package.json#L27

Try out all the scripts before publishing to npm ;)

fayeli commented 8 years ago

@sacdallago Hmm.. That line of script "undefined && npm run css" was auto-generated by biojs-slush. What should it be instead?

sacdallago commented 8 years ago

Nothing! :) It is a script that is run when installing the package. There is though no action to be performed on the machine when installing the package, you just need to "download" the package from npm. Thus I suggest you either delete it or (better) write something like "echo 'Read documentation to know how to use'"