-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
bable-node not working #9835
Comments
The error "ENOENT" means the file you're requesting doesn't exist. This is not a nodejs error. Please check your Windows "errno constants" |
Answered, closing. |
I check the npm install result . there is no error . Indeed, if we copy /node_modules/.bin/babel-node in windows command line and run .it said "The system cannot find the path specified"! So I think we need add one more environment variable like "C:\dev\ui\web\node_modules.bin" . after then , I open a new cmd and type into "babel-node" in any directory. it could work so it proves that environment config is effective. So i re-build and re-start. but unfortunately it is still not working |
Just to be sure... have you "babel-cli" in your package.json? If you want to access the babel-cli |
oh. ok I will raise question in babel repository |
when I try execute file using babel-node . it doesn't working on windows. codes as below. but on mac os it works well
var child_process = require('child_process');
child_process.execFile(./node_modules/.bin/babel-node,args,{
timeout: 10000,
env: {
...
}
}
the error is
API ERROR: Error: spawn ./node_modules/.bin/babel-node ENOENT
util.js:1026 exports._errnoException
util.js:1026:11
child_process.js:193 Process.ChildProcess._handle.onexit
internal/child_process.js:193:32
child_process.js:359 onErrorNT
internal/child_process.js:359:16
next_tick.js:74 _combinedTickCallback
internal/process/next_tick.js:74:11
next_tick.js:98 process._tickCallback
internal/process/next_tick.js:98:9
The text was updated successfully, but these errors were encountered: