Giter Site home page Giter Site logo

Comments (5)

DangRock avatar DangRock commented on August 13, 2024 2

Hope this helps... I use this course as part of my new hire training program and we recently had to get this running again. For us, at least, the fix is pretty easy:

  1. In package.json, change “node-sass”:”^4.9.0” to “sass”:”^1.32.5”
  2. If you’re version of Node (check using “node --version") is 17 or greater, at terminal, run “npm install [email protected] --save-dev”

After #1, "npm install" should work. If you have node version 17 or greater, then #2 is required for "npm run serve" to work.

from vue-getting-started.

mohankvsnsk avatar mohankvsnsk commented on August 13, 2024

Can anyone provide the solution

from vue-getting-started.

shannoneoff avatar shannoneoff commented on August 13, 2024

Same error once I get to 'npm install'. I see a whole lot of "gyp verb ERR!" and it starts with "npm ERR! code path 1". The first path it references is ..\vue-heroes\node_modules\node-sass. Every line is an error after that.

from vue-getting-started.

shannoneoff avatar shannoneoff commented on August 13, 2024

I know the error has to do with the node referenced in the code is an older version, as well as node-sass and sass-loader. For hours, I tried to get to the bottom of things but never could. Here are the best leads I could find...

Find the correct versions of Node and node-sass here: https://github.com/sass/node-sass (I believe it is Node 16.x.x + node-sass 6.x.x)

Once I was using these, the sass-loader error came up where 6.0.0 wouldn't work with ^4.0.0. There was also a possible issue with a webpack and also "TypeError: this.getOptions is not a function
at Object.loader".
I couldn't figure all of these out, so I will just watch the rest and do my best to pick up everything I can.

from vue-getting-started.

MaciejDygner avatar MaciejDygner commented on August 13, 2024

Hope this helps... I use this course as part of my new hire training program and we recently had to get this running again. For us, at least, the fix is pretty easy:

  1. In package.json, change “node-sass”:”^4.9.0” to “sass”:”^1.32.5”
  2. If you’re version of Node (check using “node --version") is 17 or greater, at terminal, run “npm install [email protected] --save-dev”

After #1, "npm install" should work. If you have node version 17 or greater, then #2 is required for "npm run serve" to work.

Spent the last hour trying to see if I can fix this, your solution worked like a charm. Thank you.

from vue-getting-started.

Related Issues (14)

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.