rabol
465
1
Mix

npm run dev does not work

Posted 2 years ago by rabol

Hi

Environment:

Mac OsX 10.12.5

php 7.1.0

node v8.0.0

npm 5.0.1

laravel installer 1.3.6

Did the following

laravel new mytest

cd mytest

npm install

npm run dev

> @ dev /Users/steenrabol/Sites/mytest
> npm run development


> @ development /Users/steenrabol/Sites/mytest
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

fs.js:638
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/Users/steenrabol/Sites/mytest/schema/loader.json'
    at Object.fs.openSync (fs.js:638:18)
    at Object.fs.readFileSync (fs.js:540:33)
    at validateOptions (/Users/steenrabol/Sites/mytest/node_modules/schema-utils/dist/validateOptions.js:35:27)
    at ExtractTextPlugin.extract (/Users/steenrabol/Sites/mytest/node_modules/extract-text-webpack-plugin/index.js:206:3)
    at Sass.rules (/Users/steenrabol/Sites/mytest/node_modules/laravel-mix/src/Preprocessors/Preprocessor.js:46:42)
    at Mix.preprocessors.forEach.preprocessor (/Users/steenrabol/Sites/mytest/node_modules/laravel-mix/setup/webpack.config.js:243:33)
    at Array.forEach (native)
    at Object.<anonymous> (/Users/steenrabol/Sites/mytest/node_modules/laravel-mix/setup/webpack.config.js:242:23)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
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`
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.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/steenrabol/.npm/_logs/2017-06-08T06_41_37_119Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ 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!     /Users/steenrabol/.npm/_logs/2017-06-08T06_41_37_205Z-debug.log

Please sign in or create an account to participate in this conversation.