Coder Social home page Coder Social logo

Comments (7)

shrey150 avatar shrey150 commented on August 26, 2024

Hey! Did you run yarn install in the root directory where package.json is located? That installs all Node.js dependencies.

from skyward-rest.

BBQ591 avatar BBQ591 commented on August 26, 2024

Yes, I just did. That error disappeared. There is a new error now, and I dont know why it is there:
Screen Shot 2022-09-29 at 3 34 32 PM

from skyward-rest.

BBQ591 avatar BBQ591 commented on August 26, 2024

To clarify what I've done, here is my code:
Screen Shot 2022-09-29 at 3 23 29 PM
I ran npm install skyward-rest to get rid of the first error, but I don't know what to do about the second error.

from skyward-rest.

BBQ591 avatar BBQ591 commented on August 26, 2024

Also, I believe that my URL is currently redirecting. What should I do to prevent that?

from skyward-rest.

shrey150 avatar shrey150 commented on August 26, 2024

Looking at this line, I'm guessing it's because you don't have cheerio installed. That should've been installed when you ran npm install skyward-rest, but you could manually install using npm install cheerio. I would try yarn install again and make sure you're doing it in the root directory of your project, which should take care of all peer dependencies. You could also try using install-peerdeps.

from skyward-rest.

BBQ591 avatar BBQ591 commented on August 26, 2024

It still isn't working. Here is the terminal error:
Screen Shot 2022-09-29 at 4 06 28 PM
There is also a pop up on const skyward=require('skyward-rest').
Screen Shot 2022-09-29 at 4 08 19 PM
I have also tried npm install (I am using npm instead of yarn, so instead of doing yarn install, I am doing npm install). I have done npm install cheerio and npm install skyward-rest. This is still the error, and I can't seem to find a solution. Thanks a lot for helping me by the way, @shrey150 .

from skyward-rest.

BBQ591 avatar BBQ591 commented on August 26, 2024

Actually, never mind, I got it working. However, a new problem has appeared. How do I get the scrapeHistory to display the course 5-digit number? For the scrapeGradebook, it is required, so I assume that it is stored somewhere, but it just isn't being displayed in the scrapeHistory function. How can I access this?

from skyward-rest.

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.