尝试运行任何webpack命令时出现此错误 . 这个应用程序的回购是在https://github.com/markpassando/Clonebnb

Webpack配置/Users/anthonymakela/Desktop/Projektit/Clonebnb-master2/config/webpack/development.js未找到,请运行'bundle exec rails webpacker:install'以使用默认配置安装webpacker或为您的自定义添加缺少的配置文件环境 .

另外,当运行bundle exec时,它会显示这个

错误:命令'webpacker:install'无法识别

这是我的webpack.config.js

var path = require("path");
var webpack = require("webpack");

var plugins = []; // if using any plugins for both dev and production
var devPlugins = []; // if using any plugins for development

var prodPlugins = [
new webpack.DefinePlugin({
'process.env': {
  'NODE_ENV': JSON.stringify('production')
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
  warnings: true
}
})
];

plugins = plugins.concat(
process.env.NODE_ENV === 'production' ? prodPlugins : devPlugins
)

module.exports = {
context: __dirname,
entry: "./frontend/clone_bnb.jsx",
output: {
path: path.resolve(__dirname, 'app', 'assets', 'javascripts'),
filename: "bundle.js"
 },
plugins: plugins,
module: {
loaders: [
  {
    test: [/\.jsx?$/, /\.js?$/],
    exclude: /node_modules/,
    loader: 'babel-loader',
    query: {
      presets: ['es2015', 'react']
    }
    }
    ]
    },
    devtool: 'source-maps',
    resolve: {
     extensions: [".js", ".jsx", "*"]
    }
    };

这是package.json

{
  "name": "clonebnb",
  "version": "1.0.0",
  "description": "== README",
  "main": "index.js",
  "directories": {
  "doc": "docs",
  "test": "test"
  },
  "engines": {
  "node": "6.10.1",
  "npm": "3.10.10"
  },
  "scripts": {
  "test": "echo \"Error: no test specified\" && exit 1",
  "start": "webpack --watch",
  "postinstall": "webpack"
  },
  "repository": {
  "type": "git",
  "url": "git+https://github.com/markpassando/Clonebnb.git"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "bugs": {
  "url": "https://github.com/markpassando/Clonebnb/issues"
  },
  "homepage": "https://github.com/markpassando/Clonebnb#readme",
  "dependencies": {
  "babel-core": "^6.25.0",
  "babel-loader": "^7.1.0",
  "babel-preset-es2015": "^6.24.1",
  "babel-preset-react": "^6.24.1",
  "moment": "^2.18.1",
  "react": "^15.6.1",
  "react-addons-shallow-compare": "^15.6.0",
  "react-dates": "^12.2.1",
  "react-dom": "^15.6.1",
  "react-ga": "^2.2.0",
  "react-redux": "^5.0.5",
  "react-router-dom": "^4.1.1",
  "redux": "^3.7.0",
  "redux-thunk": "^2.2.0",
  "webpack": "^3.0.0"
  },
  "devDependencies": {
  "redux-logger": "^3.0.6"
  }
 }