You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear to me how to 'require' a module.
For example, in Terminal.app I cd into the 'public' directory (which contains index.html), and do an
npm install hash.js
I add require('hash.js') to index.html. Then when I compile&run, I get "undefined:40: Error: No such native module hash.js."
The same with any other module.
I checked and the module is copied by Xcode to ./Contents/Resources/public/node_modules/hash.js in the .app.
Thank You for your help!
The text was updated successfully, but these errors were encountered:
zsszatmari
changed the title
how to do nom install
how to do npm install
May 6, 2014
Dear Developers,
It's not clear to me how to 'require' a module.
For example, in Terminal.app I cd into the 'public' directory (which contains index.html), and do an
npm install hash.js
I add require('hash.js') to index.html. Then when I compile&run, I get "undefined:40: Error: No such native module hash.js."
The same with any other module.
I checked and the module is copied by Xcode to ./Contents/Resources/public/node_modules/hash.js in the .app.
Thank You for your help!
The text was updated successfully, but these errors were encountered: