I am starting a new app that needs to depend on 1.3’s promised ease of use of npm modules, but I seem to have hit a show stopper before I can even get started. (I’m using 1.3-beta.12.)
This problem may be a bug, however, of the “non-standard_but_works_in_NodeJs_anyway” variety.
Error: ENOENT, no such file or directory '/node_modules/google-spreadsheet/node_modules/request/node_modules/mime/types/mime.types'
at Mime.load (node_modules/google-spreadsheet/node_modules/request/node_modules/mime/mime.js:54:1)
The file does exist in my project’s node_modules
directory, as expected. So I made a copy in the system root. Sure enough, the error went away, moving me on to the next error.
Error: Cannot find module './aes' at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:77:1)
at node_modules/google-spreadsheet/node_modules/google-auth-library/node_modules/gtoken/node_modules/google-p12-pem/node_modules/node-forge/js/forge.js:31:1
There is a file aes.js
, correctly, in the same directory as forge.js
.
I tried a symbolc link from /node_modules
to ${my_project}/node_modules
, but it did not help.
Is this a known issue?