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
install.js uses the {recursive: true} option to fs.mkdirSync, which was only introduced in node 10.12.0. If you're using a version older than that, the option is silently ignored and you get:
Sorry, protobuf-ts was unable to install protoc...
ENOENT: no such file or directory, mkdir '/path/to/node_modules/@protobuf-ts/protoc/installed/protoc-3.13.0-linux-x86_64/include/google/protobuf'
It would probably be worthwhile to emit a more informative error message if you detect an old version of node.
The text was updated successfully, but these errors were encountered:
protobuf-ts is tested against Node.js version 14.5.0. If you want to be sure that everything works as tested, you need to use this version or a later one.
But older versions are important as well, of course. Most things can be poly-filled. For example, the runtime requires globalThis, the rpc features require the fetch API.
Unfortunately, there is no documentation about what exactly is required for which node version. My plan is to look at it on a case-by-case basis and downgrade the code if applicable.
@protobuf-ts/protoc is a clear case for a downgrade. It should work in older node versions. I'll have a look into fixing this.
install.js uses the
{recursive: true}
option tofs.mkdirSync
, which was only introduced in node 10.12.0. If you're using a version older than that, the option is silently ignored and you get:It would probably be worthwhile to emit a more informative error message if you detect an old version of node.
The text was updated successfully, but these errors were encountered: