当前位置:网站首页>Live-Server使用
Live-Server使用
2022-07-07 21:52:00 【gaojingsong】
PS D:\web001\vue001> live-server
live-server : 无法将“live-server”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ live-server
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (live-server:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS D:\web001\vue001> npm install -g live-server
npm WARN deprecated [email protected]: The package has been renamed to `open`
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
D:\node\node-v14.19.0-win-x64\live-server -> D:\node\node-v14.19.0-win-x64\node_modules\live-server\live-server.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules\live-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ [email protected]
added 195 packages from 149 contributors in 44.98s
PS D:\web001\vue001> live-server
live-server : 无法加载文件 D:\node\node-v14.19.0-win-x64\live-server.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=13
5170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ live-server
+ ~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS D:\web001\vue001> set-ExecutionPolicy RemoteSigned
set-ExecutionPolicy : 对注册表项“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell”的访问被拒绝。 要更改默认(LocalMachine)作用域的
执行策略,请使用“以管理员身份运行”选项启动 Windows PowerShell。要更改当前用户的执行策略,请运行 "Set-ExecutionPolicy -Scope CurrentUser"。
所在位置 行:1 字符: 1
+ set-ExecutionPolicy RemoteSigned
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
PS D:\web001\vue001> Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
PS D:\web001\vue001> live-server
Serving "D:\web001\vue001" at http://127.0.0.1:8080
Ready for changes
GET /favicon.ico 404 3.955 ms - 150
GET /favicon.ico 404 1.370 ms - 150
PS D:\web001\vue001> live-server --port 9000
Serving "--port" at http://127.0.0.1:8080
Ready for changes
GET / 404 9.740 ms - 139
PS D:\web001\vue001> live-server --help
Usage: live-server [-v|--version] [-h|--help] [-q|--quiet] [--port=PORT] [--host=HOST] [--open=PATH] [--no-browser] [--browser=BROWSER] [--ignore=PATH] [--ignorePattern=RGXP] [--no-css-inject] [--entry-file=PATH] [--spa] [--mount=ROUTE:PATH] [--wait=MILLISECONDS] [--htpasswd=PATH] [--cors] [--https=PATH] [--https-module=MODULE_NAME] [--proxy=PATH] [PATH]
PS D:\web001\vue001> live-server -h
Usage: live-server [-v|--version] [-h|--help] [-q|--quiet] [--port=PORT] [--host=HOST] [--open=PATH] [--no-browser] [--browser=BROWSER] [--ignore=PATH] [--ignorePattern=RGXP] [--no-css-inject] [--entry-file=PATH] [--spa] [--mount=ROUTE:PATH] [--wait=MILLISECONDS] [--htpasswd=PATH] [--cors] [--https=PATH] [--https-module=MODULE_NAME] [--proxy=PATH] [PATH]
PS D:\web001\vue001>live-server --port=10010
Serving "D:\web001\vue001" at http://127.0.0.1:10010
Ready for changes
GET /favicon.ico 404 2.854 ms - 150

边栏推荐
- 系统架构设计师备考经验分享:论文出题方向
- Inftnews | web5 vs Web3: the future is a process, not a destination
- Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
- Inftnews | the wide application of NFT technology and its existing problems
- MySQL Index Optimization Practice II
- 2022第六季完美童模陕西总决赛圆满落幕
- 648. Word replacement
- PCI-Express接口的PCB布线规则
- Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
- Unity3d learning notes 5 - create sub mesh
猜你喜欢

海内外技术人们“看”音视频技术的未来

Wechat forum exchange applet system graduation design (5) assignment

MySQL Index Optimization Practice II

First week of July

Install a new version of idea. Double click it to open it

Unity3d learning notes 5 - create sub mesh

Talk about the design and implementation logic of payment process

Inftnews | the wide application of NFT technology and its existing problems
![给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」](/img/21/2e99dd6173ab4925ec22290cd4a357.png)
给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」

Unity3d Learning Notes 6 - GPU instantiation (1)
随机推荐
生鲜行业数字化采购管理系统:助力生鲜企业解决采购难题,全程线上化采购执行
USB (XVI) 2022-04-28
ROS2专题(03):ROS1和ROS2的区别【02】
LeeCode -- 6. Z 字形变换
违法行为分析1
Tree background data storage (using webmethod) [easy to understand]
在软件工程领域,搞科研的这十年!
【编译原理】词法分析设计实现
Matlab-SEIR传染病模型预测
Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
[microservices SCG] gateway integration Sentinel
电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
Wechat forum exchange applet system graduation design completion (1) development outline
STL标准模板库(Standard Template Library)一周学习总结
海内外技术人们“看”音视频技术的未来
php 使用阿里云存储
CXF call reports an error. Could not find conduct initiator for address:
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
B_QuRT_User_Guide(39)