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
BabelJS Tutorialset up the environment for BabelJS. To work with BabelJS we need following setup: ● NodeJS ● Npm ● Babel-CLI ● Babel-Preset ● IDE for writing code NodeJS To check if nodejs is installed Once nodejs is installed, npm will also be installed along with it. To check if npm is installed or not, type npm –v in the terminal. It should display the version of the npm. BabelJS directory called babelproject. Let us make use of nodejs to create the project details. We have used npm init to create the project as shown below: Here is the project structure that we created.0 码力 | 173 页 | 2.70 MB | 1 年前3
跨平台桌⾯应⽤框架:Electron⽤Electron之前,需要确保本地环境已安装好 npm 和 node 确保已安装了 Node.js : node -v node -v 如果没有安装,则先去安装: brew brew install install node node 确保已安装了 npm : npm npm -v -v 安装Electron npm npm i -D electron@latest i cd cd electron-quick-start electron-quick-start # # 安装依赖库 安装依赖库 $ $ npm npm install install # # 运⾏应⽤ 运⾏应⽤ $ $ npm npm start start 基本效果: 基本使⽤ 20 crifan.com,使⽤署名4.0国际(CC BY 4.0)协议发布 all right r打包 此处介绍如何在Mac中⽤ electron-builder 去打包Electron的应⽤,⽣成Mac中的 app 和 pkg ⽂件。 安装electron-builder npm npm install install -D electron-builder@21.2.0 -D electron-builder@21.2.0 打包和部署 22 添加build配置 以及给0 码力 | 123 页 | 21.81 MB | 1 年前3
Learning Gulpstarted with gulp 2 Remarks 2 Versions 2 Examples 2 Installation or Setup 2 1. Install Node.js and NPM: 2 2. Install gulp globally: 2 3. Initialize your project directory: 3 4. Install gulp in your project Examples Installation or Setup 1. Install Node.js and NPM: Gulp requires Node.js and NPM, Node's package manager. Most installers include NPM with Node.js. Refer to the installation documentation or your terminal, npm -v // will return NPM version or error saying command not found 2. Install gulp globally: If you have previously installed a version of gulp globally, please run npm rm --global gulp0 码力 | 45 页 | 977.19 KB | 1 年前3
RxJS Tutorial.................................................................................. 3 NODEJS and NPM Installation ..................................................................................... following setup: NodeJS Npm RxJS package installation NODEJS and NPM Installation It is very easy to install RxJS using npm. You need to have nodejs and npm installed on your system. To To verify if NodeJS and npm is installed on your system, try to execute the following command in your command prompt. E:\>node -v && npm -v v10.15.1 6.4.1 In case you are getting the version, it0 码力 | 106 页 | 1.56 MB | 1 年前3
Gulp 入门指南+ C 退出任务。 npm 模块管理器 如果你了解 npm 则跳过此章节 若你不了解npm 请阅读 npm模块管理器 安装 gulp npm 是 node 的包管理工具,可以利用它安装 gulp 所需的包。(在安装 node 时已经自动安装了 npm) 在命令行输入 npm install -g gulp 若一直没安装成功,请使用 cnpm 安装(npm的国内加速镜像) 意思是:使用 意思是:使用 npm 安装全局性的( -g ) gulp 包。 如果你安装失败,请输入 sudo npm install -g gulp 使用管理员权限安装。(可能会要求输入密码) 安装时请注意命令行的提示信息,安装完成后可在命令行输入 gulp -v 以确认安装成功。 至此,我们完成了准备工作。接着让 gulp 开始帮我们干活吧! gulp 入门指南 - 4 - 本文档使用 看云 构建 gulp-uglify 模块 模块 gulp 入门指南 - 6 - 本文档使用 看云 构建 因为我们并没有安装 gulp-uglify 模块到本地,所以找不到此模块。 使用 npm 安装 gulp-uglify 到本地 npm install gulp-uglify 安装成功后你会看到如下信息: gulp-uglify@1.1.0 node_modules/gulp-uglify ├── deepmerge@00 码力 | 36 页 | 275.87 KB | 1 年前3
TypeScript Handbook(中文版)
声明合并 书写.d.ts文件 JSX Decorators 混入 三斜线指令 如何书写声明文件 结构 规范 举例 深入 发布 使用 工程配置 tsconfig.json NPM包的类型 TypeScript Handbook(中文版) 2 5.3 5.4 5.5 5.6 6 6.1 6.2 6.3 6.4 6.5 6.6 6.7 7 7.1 混入 三斜线指令 如何书写声明文件 结构 TypeScript Handbook(中文版) 5 介绍 规范 举例 深入 发布 使用 工程配置 tsconfig.json NPM包的类型 编译选项 在MSBuild里使用编译选项 与其它构建工具整合 使用TypeScript的每日构建版本 Wiki TypeScript里的this 编码规范 常见编译错误 支持TypeScript的编辑器 有两种主要的方式来获取TypeScript工具: 通过npm(Node.js包管理器) 安装Visual Studio的TypeScript插件 Visual Studio 2017和Visual Studio 2015 Update 3默认包含了TypeScript。 如果你 的Visual Studio还没有安装TypeScript,你可以下载它。 针对使用npm的用户: > npm install -g typescript0 码力 | 557 页 | 7.48 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
共 438 条
- 1
- 2
- 3
- 4
- 5
- 6
- 44













