npm运行监视问题

时间:2019-08-03 06:53:53

标签: laravel npm

我是laravel的新手,现在我正试图创建一个项目,并且我想运行npm run watch的命令,但是它给了我错误。在网上寻找答案,但无济于事。

> @ watch C:\Users\ZARI\Desktop\motelproj
> npm run development -- --watch

> @ development C:\Users\ZARI\Desktop\motelproj
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"

One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
 - webpack-cli (https://github.com/webpack/webpack-cli)
   The original webpack full-featured CLI.
We will use "yarn" to install the CLI via "yarn add -D".
Do you want to install 'webpack-cli' (yes/no): yes
Installing 'webpack-cli' (running 'yarn add -D webpack-cli')...
'yarn' is not recognized as an internal or external command,
operable program or batch file.
undefined
npm ERR! code ELIFECYCLE

npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

0 个答案:

没有答案