Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js babel节点不再在其他目录中工作_Node.js_Babeljs - Fatal编程技术网

Node.js babel节点不再在其他目录中工作

Node.js babel节点不再在其他目录中工作,node.js,babeljs,Node.js,Babeljs,昨天babel节点工作正常。今天,在我的测试目录中,它不再工作了。奇怪的是,它运行的是我使用ES6的应用程序,没有问题 版本:5.6.14 不知道是什么导致了这种情况。我有以下.babelrc文件 import credentials from '../config/credentials' ^^^^^^ SyntaxError: Unexpected reserved word 它禁止babel节点在测试目录中工作 { "stage": 0, "ignore": [ "nod

昨天babel节点工作正常。今天,在我的测试目录中,它不再工作了。奇怪的是,它运行的是我使用ES6的应用程序,没有问题

版本:5.6.14


不知道是什么导致了这种情况。

我有以下
.babelrc
文件

import credentials from '../config/credentials'
^^^^^^
SyntaxError: Unexpected reserved word
它禁止babel节点在测试目录中工作

{
  "stage": 0,
  "ignore": [
    "node_modules",
    "bower_components",
    "testing",
    "test"
  ]
}