sh: node_modules/cross-env/bin/cross-env.js: No such file or directory
我查了一下cross-env.js
的路徑,發現它是在node_modules/cross-env/dist/bin
下面而不是node_modules/cross-env/bin
下面。
修改方案
是修改package.json
下面的node_modules/cross-env/bin/cross-env.js
爲node_modules/cross-env/dist/bin/cross-env.js
node
fallbackLoader option has been deprecated - replace with "fallback" loader option has been deprecated - replace with "use" Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.output.path: The provided value "public" is not an absolute path!
要把package.json
裏面laravel-mix
版本改爲laravel
"laravel-mix": "^0.10.0",
而後再執行npm
npm install