在Windows 10上设置NPM

时间:2018-08-18 18:29:03

标签: npm-install npm-start

安装后,当我在命令行上输入module Main exposing (..) import Html import Html.Events as Hev import Html.Attributes as Hat import Json.Decode as Json main : Program Never Model Msg main = Html.beginnerProgram { model = "" , update = update , view = view } type Msg = NewText String type alias Model = String view : Model -> Html.Html Msg view model = Html.div [ Hat.contenteditable True , Hev.on "input" (Json.map NewText targetTextContent) , Hat.style [ ("border", "1px solid darkgray") ] ] [ Html.text model ] targetTextContent : Json.Decoder String targetTextContent = Json.at ["target", "innerText"] Json.string update : Msg -> Model -> Model update msg model = case msg of NewText text -> text node -v时,它会抛出错误:

npm -v

请帮我解决。

0 个答案:

没有答案
相关问题