Auth0 angular2-jwt /node_modules/buffer/package.json 404(未找到)
Auth0 angular2-jwt /node_modules/buffer/package.json 404 (Not Found)
当我按照 Auth0 文档 (https://auth0.com/docs/quickstart/spa/angular2/08-calling-apis) 中的步骤操作时,我收到此消息:
GET http://localhost:5556/node_modules/buffer/package.json 404 (Not Found)
(index):50 Error: Error: XHR error (404 Not Found) loading
你知道我该如何解决吗?
缓冲区应该是您 node_modules 的一部分。在 node_modules 文件夹中查找 Buffer。如果不存在,那么您需要 运行 'npm install'.
Buffer 直到 Node.js 版本 5.10.0 之后才引入(找到有关缓冲区的信息 Here)所以您还想确保您使用的版本大于或等于 5.10.0 .安装最新版本的节点后,您将再次需要 运行 'npm install' 在您的项目上。
正如评论中所讨论的,您还可以 运行 命令 npm install buffer
如果 none 以上有效
当我按照 Auth0 文档 (https://auth0.com/docs/quickstart/spa/angular2/08-calling-apis) 中的步骤操作时,我收到此消息:
GET http://localhost:5556/node_modules/buffer/package.json 404 (Not Found)
(index):50 Error: Error: XHR error (404 Not Found) loading
你知道我该如何解决吗?
缓冲区应该是您 node_modules 的一部分。在 node_modules 文件夹中查找 Buffer。如果不存在,那么您需要 运行 'npm install'.
Buffer 直到 Node.js 版本 5.10.0 之后才引入(找到有关缓冲区的信息 Here)所以您还想确保您使用的版本大于或等于 5.10.0 .安装最新版本的节点后,您将再次需要 运行 'npm install' 在您的项目上。
正如评论中所讨论的,您还可以 运行 命令 npm install buffer
如果 none 以上有效