Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core-error] 运行插件或套件时出现了错误, 未找到 convert-source-map 模块! 正在尝试自动修复 #90

Open
swingboy opened this issue Dec 23, 2018 · 0 comments

Comments

@swingboy
Copy link

swingboy commented Dec 23, 2018

运行qap debug时,出现如下错误信息:

/bin/sh: tnpm: command not found
[core-error] 运行插件或套件时出现了错误, 未找到 convert-source-map 模块! 正在尝试自动修复...
⠋ content buffer: {"type":"Buffer","data":[]}
✖ Install fail! SyntaxError: Unexpected end of JSON input (file: /Users/sck/.fie/node_modules/_convert-source-map@1.6.0@convert-source-map/package.json)
SyntaxError: Unexpected end of JSON input (file: /Users/sck/.fie/node_modules/_convert-source-map@1.6.0@convert-source-map/package.json)
at JSON.parse ()
at Object.readJSON (/usr/local/lib/node_modules/qap-cli/node_modules/fie-npm/node_modules/npminstall/lib/utils.js:33:17)
at readJSON.next ()
at onFulfilled (/usr/local/lib/node_modules/qap-cli/node_modules/co/index.js:65:19)
at
npminstall version: 3.17.0
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/qap-cli/node_modules/fie-npm/node_modules/npminstall/bin/install.js convert-source-map --cwd=/Users/sck/.fie --registry=http://registry.npm.taobao.org/ --china --stdio=inherit
[core-error] sorry 自动修复失败, 请手动修复
[core-error] 运行报错, 请在这里反馈问题给 hugohua https://github.com/fieteam/fie/issues/new
Error: Cannot find module 'convert-source-map'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:470:25)
at Module.require (module.js:593:17)
at require (internal/module.js:11:18)
at Object. (/Users/sck/.fie/node_modules/_babel-core@6.26.3@babel-core/lib/transformation/file/index.js:38:25)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)

node版本:9.10.1
qap版本:3.1.15
babel-cli: 6.26.0
fie: v3.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant