The company's projects , I need to install it again when I change my computer , But directly npm install Wrong time , Tips node-sass Not installed successfully .

   And then directly npn install node-sass --save I still failed to download it when I was in , Baidu said to install one first cnpm, And then use cnpm install node-sass --save install .

   After trying , It can be installed successfully , And then the project ran normally .

vue-cli2 Project use node-sass More articles about

  1. Vue+Typescript Project use echarts

    Scheme 1 : recommend stay typescript+Vue In the project echarts, To strengthen the citation , introduce echarts and @types/echarts Two bags , One is engineering dependence , One is declaration dependency . npm install ...

  2. vue+webpack In the project px2rem Example

    Project environment construction is omitted here , I won't repeat , Please refer to the relevant information if necessary . This article only introduces , If in vue+webpack Configuration in the project , hold px Automatically turn to rem The first step is to install    npm install   postcss-px2r ...

  3. Vue The pits you may encounter in actual projects

    It's on paper , We must know that we must do it ! Vue Too many documents and tutorials , Small demo Do more , It's not as good as the actual development of a complete project . Only by doing this can we know that there are so many problems , Here are some examples of what you do demo The tutorial may not meet the pit . ...

  4. Vue You may encounter problems in actual projects

    It's on paper , We must know that we must do it ! Vue Too many documents and tutorials , Small demo Do more , It's not as good as the actual development of a complete project . Only by doing this can we know that there are so many problems , Here are some examples of what you do demo The tutorial may not meet the pit . ...

  5. Vue+webpack Project to achieve cross domain http request

    at present Vue In the project json Data requests generally use two plug-ins vue-resource and axios,  but vue-resource No longer maintained ,  and axios It's officially recommended and npm The number of downloads has increased 170 More than ten thousand ,github ...

  6. how Vue-cli Start using in Vue.js Start in project TDD( Test-driven development )

    Usually , Using test driven development (TDD) The hardest part is to start . You have to download packages with strange dependencies , Let the test suite work with your build system , Then you have to figure out how to write a test ! No wonder so many developers start running away when you mention it ...

  7. Vue.js Project use iconfont Conflict resolution

    In developing front end projects , Font icons are becoming more and more common . On the one hand, it's easier to use than pictures , You can change the size and color just like a font : On the other hand, it can reduce the number of requests , Optimize front end performance . iconfont It's easy to use , There are three main reasons ...

  8. vue+ElementUI In the project , Upload control is required , Clear the message after uploading the picture

    (ps: Here are the problems and solutions I encountered in the project , I hope it helps you . If there are other ways , You can leave a message , thank you ) A form page , Use element-ui in el-upload To upload pictures , This is required , And then write the verification rules , ...

  9. vue cli3 Project use qrcodejs2 Generate qr code

    Components are created in the form of 1. Download dependency npm install qrcodejs2 2. Create a .vue Component placement code for ( I created qrcodejs2.vue) //template The code in <templa ...

  10. vue In the project npm install sass,less,stylus

    use vue-cli Scaffolding , The default is standard css Of . If you want to use sass,less,stylus You need to install it manually . Go to the project folder , Then install ( Here we use stylus For example )stylus and stylu ...

Random recommendation

  1. UML Several relationship legends are often used in diagrams

    It's strange to learn this thing , It's easy to forget after a long time , Or I can't remember . Today I saw some UML The relationship between graphs , There's something wrong with it , Just write it down , Come and have a look when you forget later . stay UML In the class diagram of , There are several common relationships :  Inherit (Gener ...

  2. git Manage and automatically deploy projects

    When a project needs to be included in version control , There are many tools to choose from , The most common tools are CVS,SVN,GIT etc. . In normal development, it depends on the situation , There has never been the best version control tool , Only the most suitable tool . I'm used to using git Come on ...

  3. ASP.NET MVC got 405 error on HTTP DELETE request

    Use Backload Local debugging is passed , After uploading to the server 405 error ( When monitoring communication, we can find that ajax The return result of is 405) By modifying the webconfig Can solve : <system.webServer&g ...

  4. Python Challenge

    0. 2 Of 38 Power print 2**38 ##apply the result to the url 1. Look at the picture right shift Two of you , Slice it . import string intab ...

  5. C# XML And Json Switch between

    XML Convert to Json character string   A predefined one in the code xml character string , as follows : string xml = @"<?xml version=""1.0"" ...

  6. JS review : Chapter 20

    One .JSON 1.JSON The following three types of values can be represented by the syntax of : (1) Simple values : character string . The number . Boolean and null. Such as :5,“Hello,World!” (2) object :javascript The literal quantity of objects in : var ...

  7. ActiveMQ And topic Theme mode

    The development environment we use is ActiveMQ 5.11.1 Release Of Windows edition , The latest version of the official website is ActiveMQ 5.12.0 Release, You can download it yourself , Download address . It should be noted that , Development time , want ...

  8. MyBatis Learning materials

    Chinese document :http://www.mybatis.org/mybatis-3/zh/index.html http://blog.csdn.net/neosmith/article/details/61 ...

  9. spring_05 assembly bean

    One . Preface <bean id="user1" scope="singleton" init-method="myInit" destro ...

  10. Testing is often used SQL Query statement

    One . Query numeric data : SELECT * FROM tb_name WHERE sum > 100; query predicate :>,=,<,<>,!=,!>,!<,=>, ...