小程序反编译 node npm install uglify-es -g 全局安装找不到包

C:\Users\Administrator\Desktop\miniprogram\mini\meituan>npm install uglify-es
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by uglify-js as of v3.13.0
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Administrator\Desktop\miniprogram\mini\meituan\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\Desktop\miniprogram\mini\meituan\package.json'
npm WARN meituan No description
npm WARN meituan No repository field.
npm WARN meituan No README data
npm WARN meituan No license field.

  • uglify-es@3.3.9
    updated 1 package and audited 3 packages in 1.543s
    found 0 vulnerabilities

C:\Users\Administrator\Desktop\miniprogram\mini\meituan>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See npm help json for definitive documentation on these fields
and exactly what they do.

Use npm install <pkg> afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (meituan)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to C:\Users\Administrator\Desktop\miniprogram\mini\meituan\package.json:

{
"name": "meituan",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {

"uglify-es": "^3.3.9"

},
"devDependencies": {},
"scripts": {

"test": "echo \"Error: no test specified\" && exit 1"

},
"author": "",
"license": "ISC"
}

Is this OK? (yes) yes

C:\Users\Administrator\Desktop\miniprogram\mini\meituan>npm install uglify-es
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by uglify-js as of v3.13.0
npm WARN meituan@1.0.0 No description
npm WARN meituan@1.0.0 No repository field.

  • uglify-es@3.3.9
    updated 1 package and audited 3 packages in 1.482s
    found 0 vulnerabilities

C:\Users\Administrator\Desktop\miniprogram\mini\meituan>npm install uglify-es -g
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by uglify-js as of v3.13.0
C:\Users\Administrator\AppData\Roaming\npm\uglifyjs -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\uglify-es\bin\uglifyjs

  • uglify-es@3.3.9
    updated 1 package in 1.163s

C:\Users\Administrator\Desktop\miniprogram\mini\meituan>npm install uglify-es -g
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by uglify-js as of v3.13.0
C:\Users\Administrator\AppData\Roaming\npm\uglifyjs -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\uglify-es\bin\uglifyjs

  • uglify-es@3.3.9
    updated 1 package in 1.806s

小程序反编译报错:

Error: Cannot find module 'uglify-es'
Require stack:

  • F:\wxappUnpacker-master\wxappUnpacker-master\wuJs.js
  • F:\wxappUnpacker-master\wxappUnpacker-master\wuWxapkg.js
     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:
     at Function.Module._load (internal/modules/cjs/loader.js:864:27)[39
     at Module.require (internal/modules/cjs/loader.js:1044:19)
     at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (F:\wxappUnpacker-master\wxappUnpacker-master\wuJs.
     at Module._compile (internal/modules/cjs/loader.js:1158:30)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:117
     at Module.load (internal/modules/cjs/loader.js:1002:32)
     at Function.Module._load (internal/modules/cjs/loader.js:901:14)[39
     at Module.require (internal/modules/cjs/loader.js:1044:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'F:\wxappUnpacker-master\wxappUnpacker-master\wuJs.js',
    'F:\wxappUnpacker-master\wxappUnpacker-master\wuWxapkg.js'
    ]
    }
阅读 3.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏