Jump to content

So I want to move forward as a web developer and I'm trying to sink my teeth into Sass, but I've had a lot of trouble just trying to get it set up properly. I'll just outline my current situation:

  • Running Windows 10
  • Use Sublime Text 3 for all editing
  • Node.js and npm installed in Program Files
  • node-sass installed in User directory (by default)
  • Nodejs, npm and Sass packages for ST3 installed

So where I'm confused is how to properly make use of Sass. Can I use Sublime Text alone as an interface with the global installation of node-sass for all my projects? 

 

As a side question, how do I properly set the paths for the Nodejs package? I have the "node_command" path set as "C:\\Program Files\\nodejs\\node.exe" and "npm_command" as "C:\\Program Files\\nodejs\\npm.cmd". However, both node and npm commands return the following:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'node' is not defined

 

Link to comment
https://linustechtips.com/topic/551583-getting-started-with-nodejs-and-sass/
Share on other sites

Link to post
Share on other sites

Quote

Running Windows 10

Development on Windows is not much more but a pain, you should get a Mac or install Linux if you want to progress.

On Linux, it's just "sudo npm install -g sass" and then using the sass command.

Link to post
Share on other sites

1 hour ago, Gachr said:

Development on Windows is not much more but a pain, you should get a Mac or install Linux if you want to progress.

On Linux, it's just "sudo npm install -g sass" and then using the sass command.

Install-Package sass

With the new OneGet of Powershell , set up with the Chocolatey repos.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

8 hours ago, Nineshadow said:

With the new OneGet of Powershell , set up with the Chocolatey repos.

Why do I need Chocolatey? Node.js and npm should work fine on Windows right?

 

And why are all the Node.js directories being separated? Node.js in Program Files, npm is in User, and then I installed Foundation CLI via npm which got put in AppData/Roaming.

Link to post
Share on other sites

Just now, Bobe said:

Why do I need Chocolatey? Node.js and npm should work fine on Windows right?

 

And why are all the Node.js directories being separated? Node.js in Program Files, npm is in User, and then I installed Foundation CLI via npm which got put in AppData/Roaming.

You don't, not at all . Just saying there are package managers for Windows as well.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×