The Node.js Handbook
14. Accept input from the command line in Node 15. An introduction to the npm package manager 5 15.1. Introduction to npm 15.2. Downloads 15.2.1. Installing all dependencies 15.2.2. Installing a packages 15.3. Versioning 15.4. Running Tasks 16. Where does npm install the packages? 17. How to use or execute a package installed using npm 18. The package.json guide 18.1. The file structure 18.2 package-lock.json file 19.1. An example 20. Find the installed version of an npm package 6 21. Install an older version of an npm package 22. Update all the Node dependencies to their latest version 220 码力 | 161 页 | 1.66 MB | 1 年前3
ThinkJS 2.0 中文文档���������������������� npm uninstall -g thinkjs-cmd ����� �������������� ThinkJS� ���� �� Node.js �� ThinkJS npm install thinkjs@2 -g --verbose Bash npm install thinkjs@2 -g --registry=https://registry.npm.taobao ��������������������: ���� ES6 ���������������� ES6 ����������� ����������������������� npm install -g thinkjs@2 Bash ������ ThinkJS npm install thinkjs@2 Bash ���� thinkjs new project_path; #project_path�������� ���������������� ���� -> ThinkJS ��� ��������������� npm install ��������� taobao ������ ���������� --es6 ���������������������������� npm run watch-compile ����������������� ����������������0 码力 | 238 页 | 1.87 MB | 1 年前3
ThinkJS 2.2 Documentationcommand: npm install thinkjs@2 -g --verbose After installation, run thinkjs --version or thinkjs -V to check version number. Tips: If you have installed ThinkJS 1.x before, you need remove it by npm uninstall Install Node.js Install ThinkJS Update ThinkJS Bash npm install -g thinkjs@2 Update ThinkJS in you current project by run the following command: npm install thinkjs@2 After installation, you can create $ npm install run the app: $ npm start For more details about creating project, go to extension function -> ThinkJS command. After project creation, go to the project directory and run npm install0 码力 | 156 页 | 2.62 MB | 1 年前3
ThinkJS 2.1 Documentation-V to check version number. Tips: If you have installed ThinkJS 1.x before, you need remove it by npm uninstall -g thinkjs-cmd first of all. Update ThinkJS globally by run the following command: Update documentation Create project Install Node.js Install ThinkJS npm install thinkjs@2 -g --verbose Bash Update ThinkJS npm install -g thinkjs@2 Bash npm install thinkjs@2 Bash Create Project If you want to to the project directory and run npm install to install dependencies. Since v2.0.6, ThinkJS has built-in the automatical compiling feature, so you don’t need run npm run watch-compile for real time0 码力 | 148 页 | 1.69 MB | 1 年前3
ThinkJS 2.2 中文文档安装 ThinkJS 通过下面的命令即可安装 ThinkJS: npm install thinkjs@2 -g --verbose 如果安装很慢的话,可以尝试使用 taobao 的源进行安装。具体如下: npm install thinkjs@2 -g --registry=https://registry.npm.taobao.org --verbose 安装完成后,可以通过 thinkjs 的版本,可能需要将之前的版本删除掉,可以通过 npm uninstall -g thinkjs-cmd 命令删除。 更新 ThinkJS 更新全局的 ThinkJS 执行下面的命令即可更新全局的 ThinkJS: npm install -g thinkjs@2 更新项目里的 ThinkJS 在项目目录下,执行下面的命令即可更新当前项目的 ThinkJS: npm install thinkjs@2 dependencies: $ npm install run the app: $ npm start 关于创建项目命令的更多信息,请见 扩展功能 -> ThinkJS 命令。 安装依赖 项目安装后,进入项目目录,执行 npm install 安装依赖,可以使用 taobao 源进行安装。 npm install --registry=https://registry.npm.taobao.org0 码力 | 277 页 | 3.61 MB | 1 年前3
ThinkJS 2.0 Documentation-V to check version number. Tips: If you have installed ThinkJS 1.x before, you need remove it by npm uninstall -g thinkjs-cmd first of all. Update ThinkJS globally by run the following command: Update documentation Create project Install Node.js Install ThinkJS npm install thinkjs@2 -g --verbose Bash Update ThinkJS npm install -g thinkjs@2 Bash npm install thinkjs@2 Bash Create Project thinkjs new project_path; to the project directory and run npm install to install dependencies. Since v2.0.6, ThinkJS has built-in the automatical compiling feature, so you don’t need run npm run watch-compile for real time0 码力 | 141 页 | 1.61 MB | 1 年前3
Django、Vue 和Element UI 前后端原理论述settings.py 中进行配置。 2.2 前端搭建流程 创建工程(模板)->前端依赖(npm install )->前端服务配置启动 简要说明: 创建工程(模板):可以使用 Vue 脚手架工具或其他模板工具来创建 Vue 项目的初始 结构。 前端依赖(npm install):在项目目录下执行 npm install 命令,安装项目所需的前端 4 《51 测试天地》七十四 www.51testing 51testing.com 依赖包,这些依赖包通常存储在 package.json 文件中。 前端服务配置启动:在项目目录下执行 npm run serve 命令,启动前端开发服务器, 可以在浏览器中预览项目。 三、关键技术介绍 1、后端为什么要创建虚拟环境,创建虚拟环境可以达到什么效果? 隔离项目依赖:通过创建后端虚拟环境,每个项目都拥有独立的 Python 解释器和包 安装目录, com 4、npm 介绍 在前端环境中,npm 是非常重要的工具,它主要用于管理和安装前端项目的依赖、 构建工具和其他相关资源。以下是 npm 在前端开发中的应用介绍: 依赖管理:npm 可以管理前端项目的依赖,开发者可以在项目的 package.json 文件中 声明项目所依赖的第三方模块和库,以及其版本信息。在安装项目时,运行 npm install 命令会自动从 npm 仓库下载并0 码力 | 61 页 | 6.84 MB | 1 年前3
全栈⼯程师之路 Node.jsNode.js 的强⼤大 的⽣生态来炫耀 1、Callback hell 问题 ⺫⽬目前已经很好的解决了。promise / generator / async 后⾯面会讲。 2、包管理 npm 已经是开源世界⾥里最⼤大的包管理器了,模块⾮非常 丰富(25.6万 )。 我们的瓶颈 • ⼈人 • 开发速度 • 稳定 Node.js 好处 • 同样不优化,性能⽐比⼤大部分语⾔言好。即使优化,也⽐比 较⾼高的。完善的⽣生态,⽐比如测试、⼯工具、npm ⼤大量 模块。 • 缺少 Rails ⼀一样的⼤大杀器,scaffold 脚⼿手架,ORM 太弱。 开发⼤大型软件? • 测试相关 tdd / bdd 测试覆盖率 • 规范化 standard、各种 lint、hint • 构建相关 gulp、grunt、webpack,⼤大量插件 • ⽣生成器 yo 等 • 包管理⼯工具 npm ⾜足够简单易⽤用 docker compose 作为本地开发环境 • 线上 docker ⺫⽬目前的做法 • ⼩小步快⾛走,⼀一次只上⼀一样新技术; • 形成梯队,即可准备上新东⻄西; • 善⽤用 npm,实现 3 化: • 模块化、 • 最⼩小化、 • 服务化 Part 2:快速开发实践 业务边界优化 创业公司有很多可变性,要做的系统也⽆无数,如何保证业 务系统的边界是⾮非常难的,我们其实⾛走了很多弯路0 码力 | 50 页 | 1.35 MB | 1 年前3
The Laravel Handbook
useful library. 41 First go back to the terminal. Run this: npm install -D tailwindcss postcss autoprefixer If you don’t have npm installed yet, install Node.js first. This command will create files. (see my npx tutorial if you’re new to that, it’s installed automatically with Node.js, as npm ). Now open tailwind.config.js and add this: /** @type {import('tailwindcss').Config} */ export @tailwind base; @tailwind components; @tailwind utilities; 42 Finally, back to the terminal, run npm run dev and keep it running while developing the site, as php artisan serve (run both in 2 different0 码力 | 111 页 | 14.25 MB | 1 年前3
The Express HandbookInstallation You can install Express into any project with npm. If you're in an empty folder, first create a new Node.js project with npm init -y then run npm install express to install Express into the project engines, including Pug, Handlebars, Mustache, EJS and more. To use Pug we must first install it: npm install pug and when initializing the Express app, we need to set it: const express = require('express') the response and send it back to the client. You typically use pre-made middleware, in the form of npm packages. A big list of the available ones can be found here. 16 One example is cookie-parser0 码力 | 34 页 | 518.49 KB | 1 年前3
共 316 条
- 1
- 2
- 3
- 4
- 5
- 6
- 32













