-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found: Can't resolve './build/Release/raw' #50
Comments
Are you attempting to use net-ping in the browser? |
Thank you for your reply. Can i make a request? I hope you can thinking about them. |
Hi @ras24, I am not sure what specific functionality you are looking for, but you could probably get quite a lot of functionality via the existing You could always implement the functionality and open a patch request :D Steve |
Hello, |
@YashKharel19 This module is not supported to run in the browser. It requires native code which is compiled during installation which will not work in the browser. |
Hello,
I want to run the node-net-ping with reactjs and i make it with create-react-app v1.5.1.
The node-net-ping i install with npm and then i use the code below to make ping test :
var ping = require ("net-ping");
var session = ping.createSession ();
session.pingHost ("8.8.8.8", function (error, target) {
if (error)
console.log (target + ": " + error.toString ());
else
console.log (target + ": Alive");
});`
But the process end with error below :
./node_modules/raw-socket/index.js
Module not found: Can't resolve './build/Release/raw' in '/Users/me/Desktop/nodenetping/node_modules/raw-socket'
I'm using Nodejs v8.9.4 & npm v5.6.0 on macOS Sierra v10.12.6
The text was updated successfully, but these errors were encountered: