-2
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.output.path: The provided value "" is not an absolute path!
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `webpack-dev-server --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'webpack-dev-server --hot'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the helloworldapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --hot
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs helloworldapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls helloworldapp
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/aakash/.npm/_logs/2017-04-12T09_51_55_188Z-debug.log
错误消息非常明确 - 配置文件中的'output.path'没有设置。 –
我正在从[https://www.tutorialspoint.com/reactjs/reactjs_environment_setup.html]进行环境设置。 我已经创建了与上述相同的文件夹结构,但是我正在获取上面的configuration.output.path错误 –
该链接不存在 - 您拼错了吗?无论采用哪种方式,您都应该将“webpack.config.js”添加到问题中,因为这绝对是问题所在。 –