Code Monkey home page Code Monkey logo

Comments (5)

lizy14 avatar lizy14 commented on May 30, 2024

手动将代码中的 ` 改为 ' 或许可以解决问题

from history-master.

PuRonglong avatar PuRonglong commented on May 30, 2024

先前试过手动将`改为',但是在代码的46行会有错
snip20160114_4

无奈将`改为"执行,报错如下
snip20160114_5

查看确实为没有这个文件,文件目录如下
snip20160114_8
所以还是没有跑起来的

from history-master.

jiacai2050 avatar jiacai2050 commented on May 30, 2024
`hello world`

这种形式的字符串是 ES6 新增的 Template strings,我 Mac 上 node 的版本为v4.2.1是默认支持这种语法的,低版本可以试试node --harmony,或者干脆升级到最新版。

from history-master.

jiacai2050 avatar jiacai2050 commented on May 30, 2024

看了下 nodejs 的文档
Template strings 需要在 v4.0.0 以上版本才能使用

from history-master.

PuRonglong avatar PuRonglong commented on May 30, 2024

嗯,的确版本问题

5都出来了,是该升下级了😂

升级node后又遇到了一些问题,已解决并提说明

O(∩_∩)O谢谢@jiacai2050

from history-master.

Related Issues (20)

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.