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

Installing some packages will fail in Mancy #160

Open
bmamouri opened this issue Jan 23, 2017 · 1 comment
Open

Installing some packages will fail in Mancy #160

bmamouri opened this issue Jan 23, 2017 · 1 comment
Labels

Comments

@bmamouri
Copy link

I am trying to install marky-markdown package, but the installation failed with the following error:

var marky = require("marky-markdown")

Application Error

Message

Cannot read property 'id' of null

Stack Trace
TypeError: Cannot read property 'id' of null
    at EventEmitter.<anonymous> (/Applications/Mancy.app/Contents/Resources/app/main/index.js:208:33)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)
    at EventEmitter.<anonymous> (/Applications/Mancy.app/Contents/Resources/electron.asar/browser/api/web-contents.js:156:13)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)

System Details

| …
------------ | -------------
Platform | darwin
Arch | x64
Electron Version | 1.2.6
Mancy Version | 3.1.0

@MutableLoss
Copy link

MutableLoss commented May 1, 2017

I was just having this issue with node-fetch today.

My error existed because I was trying to load from my npm prefix path ( ~ /.npm). In that path Mancy was try to load the node-fetch folder where it had directories of the installed versions, but it did not have the module itself.

Once I loaded the correct module path (~ /.npm/lib/node_modules) which had the actual node-fetch module, it loaded without a hitch, and I did not see another error about the missing prop id.

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

No branches or pull requests

3 participants