markdown NodeJS和NPM

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown NodeJS和NPM相关的知识,希望对你有一定的参考价值。

* [Install nodeJs here](https://nodejs.org/en/)
* Confirm: `node -v`
* NPM is also installed: `npm -v`
* In the main root of the project: `npm init` and follow through the instructions
  * Will generate a `package.json` file in the root of your project

---

* Installing webpack as a developer dependency: ` npm install webpack --save-dev`
* Install jquery: ` npm install jquery --save`
* Installing one of these will create a `node_modules` folder that contains other libraries needed
for you dependency, if you delete this folder, just run `npm install`
* To uninstall a package: `npm uninstall jquery --save`
* **NOTE**: Installing these packages as is, is installing them **locally** per project
* To install packages globally: `sudo npm install live-server --global`

以上是关于markdown NodeJS和NPM的主要内容,如果未能解决你的问题,请参考以下文章

nodejs,CSDN转markdown

nodejs和npm的关系

nodejs和npm的关系

降级 Nodejs 和 Npm

npm 安装错误`not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:`

nodejs和npm