Code Monkey home page Code Monkey logo

nwjs-angular-hpf's Introduction

nwjs-angular-hpf

Use nwjs-v0.21.5 and angular4 to create desktop applications 使用 nwjs-v0.21.5 和 angular4 创建桌面应用

安装步骤

  1. 安装nvm for windows
    nvm-windows安装包下载地址

  2. 安装node v7.8.0

    nvm install 7.8.0
    
  3. 安装@angular/cli

    npm install @angular/cli -g
    
  4. 下载程序包并进入相关目录执行npm install

    git clone https://github.com/pengfei2017/nwjs0.21.5-angular4-hpf.git
    cd nwjs0.21.5-angular4-hpf
    npm install
    
  5. 运行angular开发环境服务器

    ng serve
    
  6. 报下列错误的处理办法

    ERROR in .//css-loader?{"sourceMap":false,"importLoaders":1}!.//postcss-loader!./~/sass-loader!./src/styles.scss Module build failed: Error: Cannot find module 'node-sass'

    //显示当前项目所有的依赖已经缺少的依赖
    npm list
    
    //输出了
    npm ERR! peer dep missing: node-sass@^3.4.2 || ^4.0.0, required by [email protected]
    
    //从输出可以看出缺少node-sass依赖,所以安装它
    npm install node-sass --save
    
  7. 运行nw客户端

    nw .
    

nwjs-angular-hpf's People

Contributors

angular-cli avatar pengfei2017 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

wahello

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.