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

Cannot load node_modules if %TEMP% is on a RAM disk #5070

Closed
linquize opened this issue Jul 3, 2016 · 4 comments
Closed

Cannot load node_modules if %TEMP% is on a RAM disk #5070

linquize opened this issue Jul 3, 2016 · 4 comments

Comments

@linquize
Copy link

linquize commented Jul 3, 2016

My %TEMP% is on a ram disk Z:\Temp

  • nwjs: 0.15.4 win64 (normal and sdk)
  • Win 7 x64

I pack my app with nw-builder so that the app is appended to the end of nw.exe
My app has a node_modules directory with a library minimist

When I call require('minimist'), it throws exception

Error: ENOENT: no such file or directory, realpath 'Z:\Temp\nw3264_28016\node_modules\minimist\index.js'

If you check that path, the js file actually exists.

If I set %TEMP% and %TMP% to a real hard disk, such as C:\Temp, the packed nw.exe loads the library minimist successfully.

@vsemozhetbyt
Copy link
Contributor

Maybe this is connected with this bug (see the end of the conversation).

@RohitSharma27
Copy link

Looks like @vsemozhetbyt is right. It seems that this is associated with node's implementation of fs.realpath. Can you try requiring the same module from node.js. Please use the same version as that of nw0.15.4

@linquize
Copy link
Author

linquize commented Jul 3, 2016

Yes, node 6.2.2 cannot load any file on RAM disk, but node 4.4.7 can

@rogerwang
Copy link
Member

close since it's an upstream bug.

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

4 participants