zoukankan      html  css  js  c++  java
  • node遇到的坑

    SyntaxError: Invalid or unexpected token
     at wrapSafe (internal/modules/cjs/loader.js:1072:16)
     at Module._compile (internal/modules/cjs/loader.js:1122:27)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
     at Module.load (internal/modules/cjs/loader.js:1002:32)
     at Function.Module._load (internal/modules/cjs/loader.js:901:14)
     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
     at internal/main/run_main_module.js:18:47

    问题是:JS文件中有中文,比如我就把分号打成中文的了。

    nodemon运行 提示错误:无法加载文件 C:UsersgxfAppDataRoaming pm odemon.ps1,因为在此系统上禁止运行脚本。

     

    nodemon运行 提示错误:无法加载文件 C:UsersgxfAppDataRoaming pm odemon.ps1,因为在此系统上禁止运行脚本。

    这是你笔记本禁止运行脚本,解决办法

    1.管理员身份打开powerShell

    2.输入set-ExecutionPolicy RemoteSigned  

    .3 选择Y 或者A ,就好了

     参考:https://www.cnblogs.com/xiaofenguo/p/11511789.html

  • 相关阅读:
    【Linux 读书笔记】Linux文件的硬连接和符号连接
    Shell参数
    Shellcase语句的例子
    Shellselect
    Shell小程序一个
    SHELL起步
    接昨天的 while
    Shell循环控制
    Shellwhile循环的例子
    Shellfor语句
  • 原文地址:https://www.cnblogs.com/by-DSL/p/12516093.html
Copyright © 2011-2022 走看看