Home >Common Problem >node-sass npm installation
How do I install node-sass using npm?
To install node-sass using npm, you can run the following command in your terminal:
<code>npm install node-sass</code>
What are the dependencies required for installing node-sass using npm?
The following dependencies are required for installing node-sass using npm:
What issues can I encounter when installing node-sass using npm and how to resolve them?
You may encounter the following issues when installing node-sass using npm:
Error: node-sass: command not found
This error can occur if the node-sass binary is not installed. To resolve this issue, try reinstalling node-sass with the following command:
<code>npm install -g node-sass</code>
Error: node-sass: sass: linux-x64 permission denied
This error can occur if the node-sass binary does not have the correct permissions. To resolve this issue, try running the following command:
<code>sudo chmod 755 /usr/local/bin/node-sass</code>
Restart terminal
The above is the detailed content of node-sass npm installation. For more information, please follow other related articles on the PHP Chinese website!