织梦CMS - 轻松建站从此开始!

沙龙网上娱乐_沙龙国际网上娱乐_沙龙国际官方网上娱乐

为什么 webpack require('request')服务器端之类的模

时间:2017-07-18 00:51来源:未知 作者:admin 点击:
测试文件只是很简单的: var request = require('request');var crypto = require('crypto'); 但是会报错: ERROR in ./~/.npminstall/tough-cookie/2.3.1/tough-cookie/package.jsonModule parse failed: C:\Users\Administrator\Desktop\s

测试文件只是很简单的:

    
var request = require('request');
var crypto = require('crypto');

但是会报错:

    ERROR in ./~/.npminstall/tough-cookie/2.3.1/tough-cookie/package.json
Module parse failed: C:\Users\Administrator\Desktop\submail\submail\node_modules
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:10)
    at Parser.pp$4.raise (C:\Users\Administrator\AppData\Roaming\npm\node_module
    at Parser.pp.unexpected (C:\Users\Administrator\AppData\Roaming\npm\node_mod
    at Parser.pp.semicolon (C:\Users\Administrator\AppData\Roaming\npm\node_modu
    at Parser.pp$1.parseExpressionStatement (C:\Users\Administrator\AppData\Roam
    at Parser.pp$1.parseStatement (C:\Users\Administrator\AppData\Roaming\npm\no
    at Parser.pp$1.parseBlock (C:\Users\Administrator\AppData\Roaming\npm\node_m
    at Parser.pp$1.parseStatement (C:\Users\Administrator\AppData\Roaming\npm\no
    
    
    
    
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
推荐内容