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

nodejs:"Error: Cannot find module 'xxxx'"解决方式 #20

Open
zhangkewei opened this issue Jul 2, 2019 · 0 comments
Open

nodejs:"Error: Cannot find module 'xxxx'"解决方式 #20

zhangkewei opened this issue Jul 2, 2019 · 0 comments
Labels
question Further information is requested

Comments

@zhangkewei
Copy link
Collaborator

打包时遇到如下错误解决方式:
cd porter-ui
npm -p install xxxx(模块名)

> Task :manager:manager-boot:yarn_install
yarn install v1.15.2
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.90s.

> Task :manager:manager-boot:buildPorterUI FAILED
yarn node v1.15.2
internal/modules/cjs/loader.js:584
    throw err;
    ^

Error: Cannot find module 'ora'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/zkevin/Documents/Workspaces/suixingpay-porter/porter-ui/builder/build.js:8:13)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
error Command failed.
Exit code: 1
Command: /Users/zkevin/Documents/Workspaces/suixingpay-porter/manager/manager-boot/build/node/node-v10.15.3-darwin-x64/bin/node
Arguments: /Users/zkevin/Documents/Workspaces/suixingpay-porter/porter-ui/builder/build.js
info Visit https://yarnpkg.com/en/docs/cli/node for documentation about this command.
Directory: /Users/zkevin/Documents/Workspaces/suixingpay-porter/porter-ui
Output:
@zhangkewei zhangkewei added the question Further information is requested label Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant