lda-topic-modeling icon indicating copy to clipboard operation
lda-topic-modeling copied to clipboard

error in 'npm run build'

Open hedgy123 opened this issue 6 years ago • 1 comments

Thanks so much for making your code available on github! I tried following your build instructions, and got the following errors while running 'npm run build':

> lettier-lda-topic-modeling@ modify-worker-0 /Users/<USERNAME>/lda-topic-modeling
> sed -i '/var PS = {};/a self.PS = PS;' output1/_worker.js

sed: 1: "output1/_worker.js": invalid command code o
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lettier-lda-topic-modeling@ modify-worker-0: `sed -i '/var PS = {};/a self.PS = PS;' output1/_worker.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lettier-lda-topic-modeling@ modify-worker-0 script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/<USERNAME>/.npm/_logs/2018-05-30T18_30_38_541Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lettier-lda-topic-modeling@ build: `npm run make-dirs && npm run build-app && npm run copy-static && npm run copy-lda-src && npm run build-worker-0 && npm run modify-worker-0 && npm run build-worker`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lettier-lda-topic-modeling@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Do you know what I can do to fix this? Thanks very much!

hedgy123 avatar May 30 '18 18:05 hedgy123

Hello @hedgy123,

What OS are you using?

You can try replacing this line

"modify-worker-0": "sed -i '/var PS = {};/a self.PS = PS;' output1/_worker.js",

with this line

"modify-worker-0": "sed -i '' -e '/var PS = {};/a self.PS = PS;' output1/_worker.js",

in package.json.

:+1:

lettier avatar May 31 '18 00:05 lettier