Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.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/6/cplusplus/138.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 在mac os中安装grind framework时遇到错误_Node.js_Frontend_Backend - Fatal编程技术网

Node.js 在mac os中安装grind framework时遇到错误

Node.js 在mac os中安装grind framework时遇到错误,node.js,frontend,backend,Node.js,Frontend,Backend,我是新来的。我按照下面url中描述的步骤进行安装 安装已成功完成,当我尝试使用以下命令运行项目时,它给出了下面描述的致命错误 命令: $bin/cli手表 错误: Mac-iMac-1s-iMac:project-name Mac-imac-1$ bin/cli watch Watching app,config Failed to start Error: Plugin 0 specified in "/Users/Mac-imac-1/Desktop/demoes/project-name

我是新来的。我按照下面url中描述的步骤进行安装

安装已成功完成,当我尝试使用以下命令运行项目时,它给出了下面描述的致命错误

命令:

$bin/cli手表

错误:

Mac-iMac-1s-iMac:project-name Mac-imac-1$ bin/cli watch
Watching app,config
Failed to start Error: Plugin 0 specified in "/Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-preset-grind/index.js" provided an invalid property of "default" (While processing preset: "/Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-preset-grind/index.js")
at Plugin.init (/Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/Mac-imac-1/Desktop/demoes/project-name/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
Mac-iMac-1s-iMac:项目名称Mac-iMac-1$bin/cli watch
观看应用程序,配置
启动错误失败:在“/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel preset grind/index.js”中指定的插件0提供了无效的“default”属性(在处理预设时:“/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel preset grind/index.js”)
位于Plugin.init(/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel core/lib/transformation/Plugin.js:131:13)
位于Function.normalisePlugin(/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel core/lib/transformation/file/options/option manager.js:152:12)
at/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel core/lib/transformation/file/options/option manager.js:184:30
在Array.map()处
位于Function.normalisePlugins(/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel core/lib/transformation/file/options/option manager.js:158:20)
在OptionManager.mergeOptions(/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel core/lib/transformation/file/options/option manager.js:234:36)
at/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel core/lib/transformation/file/options/option manager.js:265:14
at/Users/Mac-imac-1/Desktop/demoes/project name/node_modules/babel core/lib/transformation/file/options/option manager.js:323:22
在Array.map()处
在OptionManager.resolvePresets(/Users/Mac-imac-1/Desktop/demos/project name/node_modules/babel core/lib/transformation/file/options/option manager.js:275:20)

我遇到了这个问题,因此根据我的意见,您必须更改以下提到的软件包版本

在package.json文件中找到“devdependences”部分,您可以看到“babel预置研磨”:“^0.8.0-beta.1”。我们需要删除测试版的软件包

“巴别塔预设研磨”:“^0.8.0-beta.1”至“巴别塔预设研磨”:“0.7.0”

然后需要从终端执行以下命令

$ npm install
$bin/cli watch