Code Monkey home page Code Monkey logo

zmnext's Introduction

yog2 node v8升级方案

老项目node v8升级方案。注:目前支持mac、win10、centos7环境、其它环境未测试。

package.json升级或需要安装模块

{
    "bcrypt": "^3.0.0",
    "chokidar": "^2.0.4",
    "node-forge": "^0.7.5",
    "node-gyp": "^3.7.0",
    "yog2": "^1.6.0",
    "yog2-kernel": "^1.9.2",
    "xml2json": "^0.9.0",
}

升级方式

  1. 更新package.json,或执行npm i -S [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
  2. npm install -g node-gyp
  3. npm install(windows在git Bash图形界面下执行)
  4. npm rebuild (npm install有node-gyp错误时执行,依然有错误,查看下方问题1,再执行npm rebuild;如果bcrypt编译报错,查看问题2)

开发遇错反馈:

在本地进行开发报错后,及时进行反馈,当前升级方案会持续维护。 https://github.com/Baiang/zmNext/issues

1. windows环境问题

问题1:node-gyp报错, 确认是否windows平台缺少编译环境

解决:以管理员身份运行 npm install –production windows-build-tools -g

问题2:bcrypt编译报错

解决:运行 npm install bcrypt --msvs_version=2012

问题3:npm rebuild卡着不动、npm install卡着

解决:重新运行 npm install 或 yarn,或者翻墙。

问题4:Error: Could not locate the bindings file. Tried:错误

解决:npm rebuild

2. macOS环境问题

问题1:node-gyp报错 解决:在终端运行xcode-select --install

操作演示

https://asciinema.org/a/TQcanTX9whIfjTVYrMNePJebv

zmnext's People

Contributors

baiang avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.