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

Dependencies path length too long in Windows #60

Open
cosmin-novac opened this issue Jul 20, 2016 · 2 comments
Open

Dependencies path length too long in Windows #60

cosmin-novac opened this issue Jul 20, 2016 · 2 comments

Comments

@cosmin-novac
Copy link

When I electrify a project the node module dependencies generate a path that is too long for windows to read.

How can I flatten my dependency path in an electrified package? Also, I heard this should be fixed in npm 3?

@cosmin-novac
Copy link
Author

cosmin-novac commented Jul 22, 2016

I found the answer - update both the electrify dependencies and meteor's npm. For posterity, these are the required steps:

  1. meteor npm install -g npm@3 (deep dependency problem has been fixed with npm v 3)

  2. meteor remove arboleya:electrify

  3. npm install -g electrify-updated-test

  4. remove any node_modules folder from your project + .electrify folder

  5. meteor update (updates to 1.3.5.1 - the deep dependency problem has been fixed since 1.3.4)

  6. electrify package

@XaBerr
Copy link

XaBerr commented Sep 29, 2016

@tenshis
I follow your steps from 1-5, then I try electrify but I got this error:

C:\wamp\www\JUICE\projects\SPORE\meteorApp (master) ([email protected])
λ electrify
[[[ electron C:\wamp\www\JUICE\projects\SPORE\meteorApp\.electrify` ]]]

App threw an error during load
Error: Cannot find module 'app'
    at Module._resolveFilename (module.js:455:15)
    at Function.Module._resolveFilename (C:\Users\fede\AppData\Roaming\npm\node_modules\electrify-updated-test\node_modules\electron-prebuilt\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\wamp\www\JUICE\projects\SPORE\meteorApp\.electrify\index.js:1:96)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)

In point 4) I manualy clear the folder electrify/node_modules, right?

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

2 participants