npm使用Laravel 5

时间:2017-03-20 09:51:37

标签: laravel-5 npm

我正忙着使用Windows 7和WAMP学习Laravel 5.4。

我有npm版本:4.1.2,和 节点版本:7.6.0

运行npm install后,我收到了以下警告:

deprecated node-uuid@1.4.7: use uuid module instead

prefer global marked@0.3.6 should be installed with -g

prefer global node-gyp@3.6.0 should be installed with -g

optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents);

notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin", "arch":"any"} (current: {"os":"win32", "arch":"x64"})

我是否需要对这些警告采取任何措施?

然后我运行npm run dev并收到错误(log file

我对npm一无所知。有人可以帮我解决这些问题吗?

1 个答案:

答案 0 :(得分:0)

package.json文件中,更改:

"dev": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",

"dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",

这似乎有所帮助。