猿问

小白运行前端项目报错~(npm)


G:\pythonweb\online-store>cnpm run dev


> webpack-test@1.0.0 dev G:\pythonweb视频\online-store

> webpack-dev-server --inline --progress --profile --colors


No configuration file found and no entry configured via CLI option.

When using the CLI you need to provide at least two arguments: entry and output.

A configuration file could be named 'webpack.config.js' in the current directory.

Use --help to display the CLI options.

npm ERR! code ELIFECYCLE

npm ERR! errno 4294967295

npm ERR! webpack-test@1.0.0 dev: `webpack-dev-server --inline --progress --profile --colors`

npm ERR! Exit status 4294967295

npm ERR!

npm ERR! Failed at the webpack-test@1.0.0 dev script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\pc\AppData\Roaming\npm-cache\_logs\2018-02-09T09_22_42_366Z-debug.log


慕标4399855
浏览 3511回答 1
1回答

idreamc

目录不对。允许命令行的目录下是否有·webpack.config.js·这个文件
随时随地看视频慕课网APP
我要回答