netcdf4
netcdf4 copied to clipboard
Install problem in ionic 4 app
Hi,
I'm trying to install netcdf4 in a ionic app giving:
npm install netcdf4 --save
When I compile, I get this error:
ERROR in ./node_modules/netcdf4/build/Release/netcdf4.node 1:0 Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
What can I do?
Thanks!
Hi, this module is a native-addon, so you cannot use it in a browser app. You can, however, use this one in the backend (if you're using node) and then retrieve somehow the data from it.
Otherwise, you can try one of the modules on NPM that works in the browser: https://www.npmjs.com/search?q=netcdf