Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issues: postinstall fails with prism 1.9 #1411

Closed
cpboyd opened this issue Oct 23, 2018 · 9 comments
Closed

build issues: postinstall fails with prism 1.9 #1411

cpboyd opened this issue Oct 23, 2018 · 9 comments

Comments

@cpboyd
Copy link

cpboyd commented Oct 23, 2018

Log from npm install:

Binary found at C:\Projects\GitHub\stackedit\node_modules\node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine

> [email protected] postinstall C:\Projects\GitHub\stackedit
> gulp build-prism

gulp[12264]: src\node_contextify.cc:635: Assertion `args[1]->IsString()' failed.
 1: 00007FF6D6BB0205
 2: 00007FF6D6B8A176
 3: 00007FF6D6B8A241
 4: 00007FF6D6B63F9A
 5: 00007FF6D71C4102
 6: 00007FF6D71C5258
 7: 00007FF6D71C45BD
 8: 00007FF6D71C44DB
 9: 000001F000E841C1
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] postinstall: `gulp build-prism`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.

I've tried removing package-lock.json and re-running npm install from scratch, which succeeds...

But the resulting build gives this error when served with prism 1.15 (the original package-lock.json had 1.9):

Uncaught TypeError: Cannot set property 'comment' of undefined
    at Object.extend (prism.js:90)
    at Object.<anonymous> (prism.js:5392)
    at Object.<anonymous> (vendor.723162366e8d1f6b966e.js:47300)
    at n (bootstrap 0e9047d8583f52107ad0:54)
    at Object.<anonymous> (app.476a396bd6ac8bf9ab44.js:22824)
    at n (bootstrap 0e9047d8583f52107ad0:54)
    at Object.<anonymous> (index.js:1)
    at n (bootstrap 0e9047d8583f52107ad0:54)
    at Object.<anonymous> (app.476a396bd6ac8bf9ab44.js:23101)
    at n (bootstrap 0e9047d8583f52107ad0:54)
@woncode
Copy link

woncode commented Oct 28, 2018

i also meet this problem, and i have try some method from #1311 issue, butt still can't solve it

@halldorel
Copy link

Also having this problem, have tried literally everything but with no luck. Old StackEdit install guides mention using bower during setup, but that's probably not related?

I'm running npm v6.4.1, node v10.13.0 on Ubuntu 18.04.1 LTS.

@b4r
Copy link

b4r commented Dec 22, 2018

does npm install gulp and/or npm install prism help?

@ChrisLahaye
Copy link

@b4r I can confirm this fixed the problem for me.

@halldorel
Copy link

Using node version v10.12.0 did it for me.

@b4r
Copy link

b4r commented Feb 10, 2019

@ChrisLahaye nice that it worked - @halldorel interesting the version difference made it work for you. I can confirm it should work on newer installs as v11.3.0

@cpboyd
Copy link
Author

cpboyd commented Feb 14, 2019

No longer having this issue with v11.9.0 on macOS.

@Tyguy7
Copy link

Tyguy7 commented Aug 22, 2019

Installing gulp manually fixed this for me.

@sanjayabc1234
Copy link

sanjayabc1234 commented Dec 19, 2020

does npm install gulp and/or npm install prism help?

This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants