作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在尝试浏览 Node 项目 (https://github.com/datproject/sdk) 时遇到以下错误,并且遇到以下错误。
Error: Can't walk dependency graph: Cannot find module './crypto_auth' from 'C:\myPath\node_modules\sodium-universal\index.js'
required by C:\myPath\node_modules\sodium-universal\index.js
at C:\myPath\node_modules\resolve\lib\async.js:137:35
at load (C:\myPath\node_modules\resolve\lib\async.js:156:43)
at onex (C:\myPath\node_modules\resolve\lib\async.js:181:17)
at C:\myPath\node_modules\resolve\lib\async.js:15:69
at FSReqCallback.oncomplete (fs.js:158:21)
npm ERR! code ELIFECYCLE
通常我会npm install
缺少的模块。但是,这在这种情况下不起作用。此外,我在项目的任何地方都找不到提及 crypt_auth
(引用的 index.js
有一行 module.exports = require('sodium-native' )
)
我该如何调试?
最佳答案
在 Paul90 的评论之后 here ,我是这样解决的:
yourPath/node_modules/sodium-universal/build-scripts
目录node generate.js
sdk
目录并运行 npm run build
关于javascript - 无法遍历依赖图 : Cannot find module './crypto_auth' sodium-universal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65543518/
我是一名优秀的程序员,十分优秀!