tfjs_binding.node is not available in node module when trying to use tensoflow.js in node

Solved: After running

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> node-gyp configure --verbose
</code>
<code> node-gyp configure --verbose </code>
    node-gyp configure --verbose

I’ve noticed message about outdated of Visual Studio C++. After updating, I finally had a different error, code related at least. That means, that installation is finally complete.

Original issue:

System information Windows 11 23H2

First it wasn’t installing at all so I did like the other issue suggested the following:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> npm install -g node-gyp
npm install --save-exact @tensorflow/[email protected]
</code>
<code> npm install -g node-gyp npm install --save-exact @tensorflow/[email protected] </code>
     npm install -g node-gyp
     npm install --save-exact @tensorflow/[email protected]

And installation completed. But I did not manage to get past the execution issue of missing file as described below

I tried solutions in this issue: https://github.com/tensorflow/tfjs/issues/4171 and any stack overflow questions I could find. For example this one: “tfjs_binding.node” not found in @tensorflow installed folder.

I’m new to field and it is my hobby.

Logs error description:

C:UsersLenovoDesktopProgrammingPicturefindnode_modules@tensorflowtfjs-nodedistindex.js:49 throw new Error("The Node.js native addon module (tfjs_binding.node) can not " + ^

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>`Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:UsersLenovoDesktopProgrammingPicturefindnode_modules@tensorflowtfjs-nodel
ibnapi-v7tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source' to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue.
at Object. (C:UsersLenovoDesktopProgrammingPicturefindnode_modules@tensorflowtfjs-nodedistindex.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (C:UsersLenovoDesktopProgrammingPicturefindindex.js:1:12)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)`
</code>
<code>`Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:UsersLenovoDesktopProgrammingPicturefindnode_modules@tensorflowtfjs-nodel ibnapi-v7tfjs_binding.node. Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source' to rebuild the native addon module. If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue. at Object. (C:UsersLenovoDesktopProgrammingPicturefindnode_modules@tensorflowtfjs-nodedistindex.js:49:11) at Module._compile (node:internal/modules/cjs/loader:1218:14) at Module._extensions..js (node:internal/modules/cjs/loader:1272:10) at Module.load (node:internal/modules/cjs/loader:1081:32) at Module._load (node:internal/modules/cjs/loader:922:12) at Module.require (node:internal/modules/cjs/loader:1105:19) at require (node:internal/modules/cjs/helpers:103:18) at Object. (C:UsersLenovoDesktopProgrammingPicturefindindex.js:1:12) at Module._compile (node:internal/modules/cjs/loader:1218:14) at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)` </code>
`Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:UsersLenovoDesktopProgrammingPicturefindnode_modules@tensorflowtfjs-nodel
ibnapi-v7tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source' to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue.
at Object. (C:UsersLenovoDesktopProgrammingPicturefindnode_modules@tensorflowtfjs-nodedistindex.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Module.require (node:internal/modules/cjs/loader:1105:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (C:UsersLenovoDesktopProgrammingPicturefindindex.js:1:12)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)`

Node.js v18.13.0

First thing I tried as suggested:

npm rebuild @tensorflow/tfjs-node --build-addon-from-source

Then I tried to Google different solution, but to no avail. For example, solutions in this issue: https://github.com/tensorflow/tfjs/issues/4171 and any Stack Overflow questions I could find. For example this one: “tfjs_binding.node” not found in @tensorflow installed folder.

I expected program to run, but it is not. File is not in the folder.

New contributor

user27322744 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật