首页 > 编程语言 >typescript tsc : 无法加载文件 E:\nodejs\node_global\tsc.ps1

typescript tsc : 无法加载文件 E:\nodejs\node_global\tsc.ps1

时间:2022-08-25 09:24:04浏览次数:160  
标签:node typescript nodejs global tsc ExecutionPolicy RemoteSigned ps1

1.管理员身份运行vs code

2.在终端执行:get-ExecutionPolicy,显示Restricted

3.在终端执行:set-ExecutionPolicy RemoteSigned

4.在终端执行:get-ExecutionPolicy,显示RemoteSigned

显示RemoteSigned 即可;

原文链接:https://blog.csdn.net/qq_39561940/article/details/119152960

标签:node,typescript,nodejs,global,tsc,ExecutionPolicy,RemoteSigned,ps1
From: https://www.cnblogs.com/lixiuming521125/p/16593714.html

相关文章

  • 安装nodejs
    1.安装nodejs环境。node.js下载官网:http://nodejs.cn/download/点击安装包下载到电脑本地,一直点击下一步,安装完成即可。2.验证安装。键盘按下【win+R】键,输入cmd,然后......
  • node-day02
    一、加载静态资源(所有静态资源必须要在服务器响应才能看到)1.什么是静态资源例如htmlcssjs图片2.如何加载?​需要引入文件系统模块fs,使用fs中的readFile方......
  • vscode中使用prettier和typescript
    参考博文文章标题:HowtousePrettierwithESLintandTypeScriptinVSCode链接:https://khalilstemmler.com/blogs/tooling/prettier/总结使用npm安装prettiernpm......
  • 删除并安装node 指定版本
    一。卸载1.先卸载npm   sudo npm uninstall npm -g2.卸载node  yumremovenodejsnpm-y3.删除残留  进入/usr/local/lib删除所有node和no......
  • 解决typescript中无法使用对象作为获取对象属性的问题
    错误现象Error:src/app/routes/first/testmvvmtable/testmvvmtable.component.html:13:15-errorTS7053:Elementimplicitlyhasan'any'typebecauseexpressiono......
  • [Typescript] Toolbox: isError
    functionisError(err:any):errisError{returnerrinstanceofError;}try{somethingRisky()}catch(err:unknown){if(isError(err)){console......
  • Docker部署Node应用简单实践
    简介: 本文将从零至一,介绍如何在云服务器上通过Docker容器运行一个简单的Node应用。前言本文将从零至一,介绍如何在云服务器上通过Docker容器运行一个简单的Node应......
  • [Typescript] ts-expect-error
    Insomeways //@ts-expect-error canactasasuppressioncomment,similarto //@ts-ignore.Thedifferenceisthat //@ts-ignore willdonothingifthef......
  • Typescript:计算线性渐变任意比例颜色值
    需求:   这两天打算画一个环形进度条,进度从0到100%采用渐变颜色,涉及到各线段颜色取值变化,如果在CSS中,我们可以用linear-gradient达到目的。但遗憾的是,这里用的是ts,需......
  • 前端编译报Error: Cannot find module 'node-sass'
    解决办法:1.在项目目录cmd下运行:npm install -g cnpm --registry=https://registry.npm.taobao.org2.下载成功后再运行:cnpm install node-sass3、两个都下载成......