cornerstonejs / dicomParser

JavaScript parser for DICOM Part 10 data
MIT License
712 stars 228 forks source link

Module not found #267

Closed dcox1776 closed 5 months ago

dcox1776 commented 5 months ago

After installing using npm:

npm install dicom-parser

The node.js example (at https://rawgit.com/cornerstonejs/dicomParser/master/examples/nodejs/main.js) gave a module not found error. The culprit was this statement:

// Reference the dicomParser module var dicomParser = require('../../dist/dicomParser');

The dicomParser module was not found. However, it worked fine when I changed it to:

var dicomParser = require('dicom-parser');

yagni commented 5 months ago

Hi @dcox1776, the examples need a built version of the library before running them. After cloning the repo, run these two commands and then the examples should all work:

npm install
npm run build