glennreyes / fetch-instagram Goto Github PK
View Code? Open in Web Editor NEW๐ธ A lightweight and universal Instagram API client
License: MIT License
๐ธ A lightweight and universal Instagram API client
License: MIT License
I created a new project in WebStorm, ran the command npm install fetch-instagram --save
and once installed I created an index.js file in the root directory of the project and inserted the sample code with my key. When I click "Run index.js", I get the error:
C:\Users\User\WebstormProjects\fetch-io\index.js:1
(function (exports, require, module, __filename, __dirname) { import ig from "fetch-instagram";
` ^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:152:10)
at Module._compile (module.js:624:28)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
Process finished with exit code 1
Command my debug configuration used:
C:\Program Files\JetBrains\WebStorm 2018.2\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" C:\Users\User\WebstormProjects\fetch-io\index.js
Any idea how to get this working? I tried setting up Babel but I'm new to Node/NPM so I'm sure I probably did it wrong.
How can this be tested locally? I'm getting CORS error, but not sure I can specify * to Instagram API regardless. Is this module meant to run in Node or the browser?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.