【发布时间】:2019-07-02 15:38:49
【问题描述】:
我目前在将 tensorflow 导入我的项目时遇到问题。
我正在尝试使这段代码工作: https://gist.github.com/learncodeacademy/a96d80a29538c7625652493c2407b6be
但是,当我用这个命令运行它时:
node iris-tensorflow-js.js.js
我遇到了这个错误:
(function (exports, require, module, __filename, __dirname) { import * as tf from "@tensorflow/tfjs/dist/index"
^
SyntaxError: Unexpected token *
奇怪的是,导入被WebStorm很好地识别。
感谢您的帮助。
【问题讨论】:
标签: node.js tensorflow import unexpected-token