我正在尝试学习反应,所以我有这个示例代码为fullstack反应投票应用程序,我试图让它工作,但在运行npm install后跟npm start我收到以下错误:
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "server"
npm ERR! node v7.5.0
npm ERR! npm v4.3.0
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! voting_app@1.1.0 server: `live-server --public --
host=localhost --port=3000 --middleware=./disable-browser-cache.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the voting_app@1.1.0 server script 'live-server --
public --host=localhost --port=3000 --middleware=./disable-browser-
cache.js'.
npm ERR! Make sure you have the latest version of node.js …Run Code Online (Sandbox Code Playgroud) 创建新的Angular 5项目:
节点版本:8.9.2
npm版本:5.5.1
我的命令是'npm install -g @ angular/cli'
错误是
错误的ERR!解析'... nt-webpack-plugin'附近的JSON输入意外结束:"0"
错误的ERR!可以在以下位置找到此运行的完整日志:C:\ Users\Aashitec\AppData\Roaming \npm-cache_logs\2017-12-06T13_10_10_729Z-debug.log
错误日志是http://www.aashitechno.in/2017-12-06T13_10_10_729Z-debug.log
**我在 laravel 8 上安装了 livewire 、laravel mix 和 jetstream 。但是 Jetsream 的 css 和 js 不起作用,并在标头中显示一条消息 ' @vite(['resources/css/app.css', 'resources/js/ app.js']) ' **
应用程序.blade.php
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap">
<!-- Styles -->
@livewireStyles
<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body class="font-sans antialiased">
<x-jet-banner />
<div class="min-h-screen bg-gray-100">
@livewire('navigation-menu')
<!-- Page Heading -->
@if (isset($header))
<header class="bg-white shadow">
<div …Run Code Online (Sandbox Code Playgroud)