【发布时间】:2016-11-16 22:49:06
【问题描述】:
我使用以下命令将 crypto-js 放入我的 node_modules 文件夹
npm install crypto-js
然后,在我下载它之后,在我的 index.html 文件中,我使用以下命令,以便我可以调用 CryptoJS.SHA256() 方法。
<html>
<head>
<script src="node_modules/crypto-js/sha256"></script>
</head>
</html>
(我省略了其他脚本调用、元和标题标签)
但是,当我使用“npm start”运行我的项目时,我收到以下错误
这到底是什么意思?我不确定如何解决“未找到”的问题,即使它应该在哪里。我可能错过了其他东西吗?
【问题讨论】:
标签: html angular typescript sha256 cryptojs