You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "erha19 (JIRA)" <ji...@apache.org> on 2018/07/20 03:38:00 UTC

[jira] [Commented] (WEEX-515) mac系统sudo week create project报错Cannot find module 'commander'

    [ https://issues.apache.org/jira/browse/WEEX-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16550181#comment-16550181 ] 

erha19 commented on WEEX-515:
-----------------------------

Look like you have some wrong while you install your `weex-toolkit`, try `weex remove weexpack && weex update weexpack` to fix it, by the way, using sudo is not a good habit, for some permission reason, you need run `sudo chmod -R 777 ~/.xtoolkit` before you update the `weexpack`.

Thanks.

> mac系统sudo week create project报错Cannot find module 'commander'
> -------------------------------------------------------------
>
>                 Key: WEEX-515
>                 URL: https://issues.apache.org/jira/browse/WEEX-515
>             Project: Weex
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 0.19
>         Environment: Mac系统
>            Reporter: rain
>            Assignee: erha19
>            Priority: Major
>             Fix For: 0.20
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> mac系统sudo week create weexproject创建项目报错Cannot find module 'commander',从windows拷贝一个能用创建好的项目过来运行项目week run iOS 也报同样的错
> sudo weex create weex-study2
> Password:
> module.js:549
> {{throw err; ^ }}
> Error: Cannot find module 'commander'
>  
> {{at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/Users/yuanhl/.xtoolkit/node_modules/weexpack/bin/weexpack-create.js:3:17) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Command.immediateStart (/usr/local/lib/node_modules/weex-toolkit/node_modules/xtoolkit/lib/Command.js:103:5) at Command._invoke (/usr/local/lib/node_modules/weex-toolkit/node_modules/xtoolkit/lib/Command.js:81:14) at Command.run (/usr/local/lib/node_modules/weex-toolkit/node_modules/xtoolkit/lib/Command.js:53:12) at XToolkit._runCmd (/usr/local/lib/node_modules/weex-toolkit/node_modules/xtoolkit/lib/xtoolkit.js:179:27) at XToolkit._done (/usr/local/lib/node_modules/weex-toolkit/node_modules/xtoolkit/lib/xtoolkit.js:196:12) at process.nextTick (/usr/local/lib/node_modules/weex-toolkit/node_modules/xtoolkit/lib/xtoolkit.js:131:14) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9) at Function.Module.runMain (module.js:695:11) at startup (bootstrap_node.js:191:16)}}
> {{按网上说的单独安装commander,npm i commander -g错误依旧}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)