[
https://issues.apache.org/jira/browse/WEEX-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706626#comment-16706626
]
erha19 edited comment on WEEX-672 at 12/3/18 3:25 AM:
------------------------------------------------------
[~clys][~quzhengping] The issue has been fixed on the latest official template,
you can re-create your project or run `npm i ws --save-dev` to fix it.
This module is used for the Hotreload feature on the official project, you can
use it with the latest playground app.
Sorry to reply so late.
was (Author: erhaa19):
[~clys][~quzhengping] The issue has been fixed on the latest official template,
you can re-create your project or run `npm i ws --save-dev` to fix it.
Sorry to reply so late.
> 新建的项目直接npm start报Cannot find module 'ws'
> ----------------------------------------
>
> Key: WEEX-672
> URL: https://issues.apache.org/jira/browse/WEEX-672
> Project: Weex
> Issue Type: Bug
> Components: Tools
> Affects Versions: 0.19
> Environment: os:deepin
> Reporter: 陈李雨声
> Assignee: qz
> Priority: Blocker
> Attachments: 深度截图_deepin-terminal_20181129162423.png
>
>
> weex create x
> cd x
> cnpm i
> npm start
> 后
> internal/modules/cjs/loader.js:582
> throw err;
> ^
> Error: Cannot find module 'ws'
> at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
> at Function.Module._load (internal/modules/cjs/loader.js:506:25)
> at Module.require (internal/modules/cjs/loader.js:636:17)
> at require (internal/modules/cjs/helpers.js:20:18)
> at Object.<anonymous> (/data/code/weex/x/configs/hotreload.js:1:81)
> at Module._compile (internal/modules/cjs/loader.js:688:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
> at Module.load (internal/modules/cjs/loader.js:598:32)
> at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
> at Function.Module._load (internal/modules/cjs/loader.js:529:3)
> at Module.require (internal/modules/cjs/loader.js:636:17)
> at require (internal/modules/cjs/helpers.js:20:18)
> at Object.<anonymous> (/data/code/weex/x/configs/webpack.dev.conf.js:45:18)
> at Module._compile (internal/modules/cjs/loader.js:688:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
> at Module.load (internal/modules/cjs/loader.js:598:32)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)