unexpected reserved word import in node.js

后端 未结 3 566
抹茶落季
抹茶落季 2020-12-08 06:15

I\'m trying to run node.js backend server. I\'ve received error unexpected reserved word on import in Node.js file.

The lines in file core.module.

3条回答
  •  粉色の甜心
    2020-12-08 07:02

    I ran into this issue as I manually install any of these tools outside of Visual Studio. But Visual Studio ships with multiple open source command line tools that are used in modern web development workflows. Here’s how you can tell Visual Studio to use the same version that you have manually installed

    Go to Tools –> Options –> Projects and Solutions –> External Web Tools

    • Set the global PATH environment variable before the internal path, you can just use the arrows at the top-right to change the order.

    or

    • First, find the Node.js installation you already have and use at the command line. By default, Node.js 0.12.7 installs to “C:\Program Files\nodejs”. Add this entry at the top to the path to the node.js directory to force Visual Studio to use that version instead

提交回复
热议问题