I've been groping for it lately vue-cli Scaffold installation , Some of them are used in the middle node Of npm Command line , I did some sorting , And this one will collect and update all the time !

1, General file operation command

cd..                   Returns one level above the current file ( Go up )

cd sell               open "sell" Folder ( Go down )

dir                     Open all the files under the current folder

F:                   Go straight into F disc

2, The command to install the file

npm install <name>                         Followed by the filename , install nodejs The dependency package of

( You can install the specified version by adding a version number after it , Such as npm install express@3.0.6)

npm install <name>  -g                     hinder -g Means to install the package into the global environment

( Directly through require() There is no way to call the globally installed package , Global installation is for the command line .)

npm install <name> -g --save           hinder --save At the same time of installation , Write the information package.json in

( If there is package.json When you file , Use it directly npm install The method can be based on dependencies Configure and install all the dependent packages so that the code is submitted to github when , You don't have to submit node_modules This folder )

npm init                                             Will lead you to create a package.json file , Include the name 、 edition 、 The author of this information and so on

npm update <name>                          to update

npm uninstall <name> --save             Delete ( Delete a single dependency )

How to delete node_moudle Folder

First step :npm install rimraf -g             The second step :rimraf node_moudle

npm More articles on general command line collections

  1. npm Execute the command line and report an error

    I'm learning today react-router When to use the command npm start Reported a mistake npm ERR! missing script: start npm ERR! A complete log of th ...

  2. win32 Command line collection under ( The best tool )

    HIDECMD.rar download : Run the batch as a hidden window . curl.exe 7.12.2 File transfer 593,670 curl Is a use of URL Syntax is a file transfer tool that works on the command line E6ED60CDA8 ...

  3. front end NPM Common command line

    1. land npm npm login 2. Publish the project to npm npm publish 3. View the selected ; The one with an asterisk in front of it is currently used npm Source nrm ls 4. Switch source nrm use or Such as : ...

  4. windows 2003 domain controller (AD) General command line operation and repair of

    The role of the query server Netdom query fsmo Force upgrade operations master role ( If two DC No damage , It can be transmitted directly in graphic mode , This is a DC have a problem , Another one is forced to upgrade and occupy roles ) Ntdsutil Ro ...

  5. npm Local installation of command line type modules in is not registered Path Of

    http://www.jianshu.com/p/c04dea6e46de First of all, it's necessary to explain what the command line is (Command Line) Type of module .npm There are three types of modules : The binding type (Binding): Ben ...

  6. mongodb_ Command line

    One . Open the command line cmd --> cd C:\Program Files\MongoDB\Server\3.0\bin\ --> mongo.exe   Two . Connect to the remote machine command line tool 1. Connect ...

  7. Mac os The next line break results in publishing to npm The command line module in can't be used

    Study node, Get a command line module , Publish to npm after ,Windows It can be used after installation , but Mac Not under the terminal . contrast grunt-cli All night , It's depressing , It turns out that it's the newline problem of the operating system . npm insta ...

  8. adopt npm Write a cli Command line tools

    Preface If you want to write a npm plug-in unit , If you want to simplify your operation through the command line , If you're also a lazy person , So this article is worth reading . po My last article introduced how to customize your own template , But such po The Lord is still not satisfied , In the project, we often need ...

  9. Appium Summary of problems encountered in command line mode and solutions npm ERR! tar.unpack unzip( perhaps untar) error

    Installed GUI Appium after , After the problem is removed , Use command line mode to install . One . Have a problem : nalideMacBook-Pro:~ nali$ npm install -g appium npm ERR! ...

Random recommendation

  1. service Simple use

    Service The life cycle approach is better than Activity a little bit less , Only onCreate, onStart, onDestroy We have two ways to start one Service, They are for Service The impact of the life cycle is different . ...

  2. Give Way delphi analysis chrome Extended native application

    chrome Since last year, browsers have gradually removed support for browser plug-ins ,npapi It's not available right now . It's imperative to choose an alternative , The most commonly used is expansion . The extender provides a solution to interact with the local program ——“ Native messaging ” Write ...

  3. Camera Overview of image special effects processing (Bitmap Of Pixels Handle 、Canvas/paint Of drawBitmap Handle 、 Rotate the picture 、 Cut the picture 、 Slide through the pictures &lt; Thread fixed time display a &gt;)

    One is directly to Bitmap To operate on the same pixel , Such as : superposition . Frame . nostalgia .( gaussian ) Fuzzy . sharpening ( Laplace transform ). Bitmap.getPixels(srcPixels, 0, width, 0, 0, width, ...

  4. 【POJ 2486】 Apple Tree ( Tree form DP)

    Apple Tree Description Wshxzt is a lovely girl. She likes apple very much. One day HX takes her to a ...

  5. ARM How to define address with structure in the header file of MCU

    Now let's ARM Cortex-M0 The core of MCU LPC1114 The header file lpc11xx.h The document explains . 1. Let me just say something lpc11xx.h File is lpc11xx Series MCU contains header file . The role of this document and 51 single ...

  6. How to Simulate the Price Order or Price Line Function using API QP_PREQ_PUB.PRICE_REQUEST Includes

    How to Simulate the Price Order or Price Line Function using API QP_PREQ_PUB.PRICE_REQUEST Includes ...

  7. iOS The programmer How to get promoted and raised ,5 year Development experience Code the agriculture The notes are for you !

    Preface : For most of us , The basic meaning of work is that we can support ourselves by exchanging our work for reward , Especially for the fresh graduates , Having a full-time job means getting out of school , Set foot in society , I really started to be independent . I'm feeding myself ...

  8. Keras The problem of running slower and slower

    Keras After running iterations for a certain number of algebras , Slower and slower , After checking, it is because a new calculation node is added in the iteration process of the loop , This leads to more and more computing nodes , Out of memory , Slow down . Judge whether a new calculation node is added in the iteration process of the cycle , You can use the following sentence ...

  9. About window.onresize

    window.ss1 = function() { alert("aaa") } window.ss = function() { alert("bbb") } ...

  10. Dockerfile in ENTRYPOINT and CMD The difference between

    One .dockerfile Medium CMD 1. Every dockerfile There can only be one of them CMD If there are multiple, only the last one is executed . 2.CMD Equivalent to startup docker See the parameters added later , A simple example : docker ...