微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Plutus Playground 客户端无法运行

如何解决Plutus Playground 客户端无法运行

我正在尝试运行 plutus-playground-client,但在运行 npm run start 时出现此错误

[nix-shell:~/dev/plutus/plutus-playground-client]$ npm run start

> plutus-playground-client@1.0.0 start /Users/danicuki/dev/plutus/plutus-playground-client
> npm install && plutus-playground-generate-purs && npm run purs:compile && npm run webpack:server

npm WARN ajv-errors@1.0.1 requires a peer of ajv@>=5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN monaco-emacs@0.2.2 requires a peer of monaco-editor@^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.3 || ^0.20.0 but none is installed. You must install peer dependencies yourself.
npm WARN plutus-playground-client@1.0.0 No repository field.

audited 752 packages in 3.101s

42 packages are looking for funding
  run `npm fund` for details

found 5 vulnerabilities (2 moderate,3 high)
  run `npm audit fix` to fix them,or `npm audit` for details
[Info] Running: (nothing,PSGenerator {_outputDir = "generated"})

Successfully created your servant API PureScript functions!
Please make sure you have PureScript-servant-support version 5.0.0 or above installed:

  bower i --save PureScript-servant-support

The following PureScript packages are needed by the generated code:

  - plutus-playground-client
  - PureScript-either
  - PureScript-foreign-generic
  - PureScript-maybe
  - PureScript-ordered-collections
  - PureScript-profunctor-lenses
  - web-common

Successfully created your PureScript modules!
plutus-playground-server: user error (Error evaluating simulation: InterpreterError (CompilationErrors [CompilationError {filename = "\n/private/tmp/web-ghc-work-f7221c0023582e5f/Main.hs",row = 2,column = 1,text = [" error:","    Could not load module \8216Playground.Contract\8217","    It is a member of the hidden package \8216playground-common-0.1.0.0\8217.","    You can run \8216:set -package playground-common\8217 to expose it.","    (Note: this unloads all the modules in the current scope.)","    Use -v (or `:set -v` in ghci) to see a list of the files searched for.","  |","2 | import           Playground.Contract","  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"]},CompilationError {filename = "/private/tmp/web-ghc-work-f7221c0023582e5f/Main.hs",row = 3,"    Could not load module \8216Plutus.Contract\8217","    It is a member of the hidden package \8216plutus-contract-0.1.0.0\8217.","    You can run \8216:set -package plutus-contract\8217 to expose it.","3 | import           Plutus.Contract","  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"]},row = 4,"    Could not load module \8216PlutusTx.Prelude\8217","    It is a member of the hidden package \8216plutus-tx-0.1.0.0\8217.","    You can run \8216:set -package plutus-tx\8217 to expose it.","4 | import           PlutusTx.Prelude","  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"]}]))
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! plutus-playground-client@1.0.0 start: `npm install && plutus-playground-generate-purs && npm run purs:compile && npm run webpack:server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the plutus-playground-client@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/danicuki/.npm/_logs/2021-07-06T16_34_12_339Z-debug.log

我该如何解决

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?