matmanjs / matman

Web 端对端测试(E2E,End-to-End Testing)解决方案
https://matmanjs.github.io/matman
MIT License
46 stars 10 forks source link

windows 下安装 matman-cli 时的权限提示错误 #115

Closed helinjiang closed 6 years ago

helinjiang commented 6 years ago

image

npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
[  ................] / fetchMetadata: WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recom[  ................] | fetchMetadata: WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recom[  ................] | fetchMetadata: WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recomnpm WARN deprecated duplexer3@0.1.4: Sadly, duplexer3 is no longer with us. It will be missed.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ajv-keywords@3.2.0 (node_modules\matman-cli\node_modules\ajv-keywords):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: acorn-dynamic-import@2.0.2 (node_modules\matman-cli\node_modules\acorn-dynamic-import):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: acorn@5.7.1 (node_modules\matman-cli\node_modules\acorn):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: amp@0.3.1 (node_modules\matman-cli\node_modules\amp):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: arr-union@3.1.0 (node_modules\matman-cli\node_modules\arr-union):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: arr-flatten@1.1.0 (node_modules\matman-cli\node_modules\arr-flatten):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: array-differ@1.0.0 (node_modules\matman-cli\node_modules\array-differ):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: array-union@1.0.2 (node_modules\matman-cli\node_modules\array-union):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: asn1@0.2.3 (node_modules\matman-cli\node_modules\asn1):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: array-unique@0.2.1 (node_modules\matman-cli\node_modules\array-unique):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: arrify@1.0.1 (node_modules\matman-cli\node_modules\arrify):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: inherits@2.0.1 (node_modules\matman-cli\node_modules\assert\node_modules\inherits):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util@0.10.3 (node_modules\matman-cli\node_modules\assert\node_modules\util):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assign-symbols@1.0.0 (node_modules\matman-cli\node_modules\assign-symbols):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: async-each@1.0.1 (node_modules\matman-cli\node_modules\async-each):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert@1.4.1 (node_modules\matman-cli\node_modules\assert):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: atob@2.1.1 (node_modules\matman-cli\node_modules\atob):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aws4@1.7.0 (node_modules\matman-cli\node_modules\aws4):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aws-sign2@0.7.0 (node_modules\matman-cli\node_modules\aws-sign2):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules\matman-cli\node_modules\babel-code-frame\node_modules\ansi-regex):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-ansi@3.0.1 (node_modules\matman-cli\node_modules\babel-code-frame\node_modules\strip-ansi):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-async-functions@6.13.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-async-functions):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-class-constructor-call@6.18.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-class-constructor-call):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: supports-color@2.0.0 (node_modules\matman-cli\node_modules\babel-code-frame\node_modules\supports-color):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-class-properties@6.13.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-class-properties):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-async-generators@6.13.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-async-generators):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-decorators@6.13.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-decorators):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-export-extensions@6.13.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-export-extensions):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-dynamic-import@6.18.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-dynamic-import):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-trailing-function-commas@6.22.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-trailing-function-commas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-exponentiation-operator@6.13.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-exponentiation-operator):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babylon@6.18.0 (node_modules\matman-cli\node_modules\babylon):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: babel-plugin-syntax-object-rest-spread@6.13.0 (node_modules\matman-cli\node_modules\babel-plugin-syntax-object-rest-spread):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: is-accessor-descriptor@1.0.0 (node_modules\matman-cli\node_modules\base\node_modules\is-accessor-descriptor):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: kind-of@6.0.2 (node_modules\matman-cli\node_modules\base\node_modules\kind-of):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: isobject@3.0.1 (node_modules\matman-cli\node_modules\base\node_modules\isobject):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'

npm ERR! path C:\Program Files\nodejs\node_modules\.staging
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm ERR!  { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'mkdir',
npm ERR!      path: 'C:\\Program Files\\nodejs\\node_modules\\.staging' },
npm ERR!   stack: 'Error: EPERM: operation not permitted, mkdir \'C:\\Program Files\\nodejs\\node_modules\\.staging\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'C:\\Program Files\\nodejs\\node_modules\\.staging',
npm ERR!   parent: 'acorn-dynamic-import' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\linjianghe\.tnpm\_logs\2018-07-05T03_37_50_038Z-debug.log
helinjiang commented 6 years ago

这个问题暂时没有更好的办法,请换 https://github.com/cmderdev/cmder 来执行命令

右键之后,点击“以管理员身份运行”

image