Node-sass is not recognized by command line

后端 未结 5 1831
情深已故
情深已故 2021-02-07 14:16

I\'m trying to set up node-sass, following the instructions on CSS-Tricks. Node and npm are installed correctly, and the node-sass installation worked too. When I go to run

5条回答
  •  暖寄归人
    2021-02-07 14:30

    This is a simple problem don't worry too much. Just go to package.json file and add this code

    "devDependencies": {
        "node-sass": "4.9.2"
    },
    "scripts" : {
        "node-sass": "node-sass --output-style compressed -o dist/css/ scss --recursive"
    }
    

    and just save the file.

    And run this command,

    **npm run node-sass**
    

    That's all

提交回复
热议问题