Closed dcox1776 closed 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');
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
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');