当我按照Auth0文档(ora2pg)中的步骤操作时,我收到此消息:
GET http://localhost:5556/node_modules/buffer/package.json 404 (Not Found)
(index):50 Error: Error: XHR error (404 Not Found) loading
你知道我怎么解决它吗?
我的项目是使用:https://auth0.com/docs/quickstart/spa/angular2/08-calling-apis
构建的答案 0 :(得分:1)
Buffer should be part of your node_modules. Look inside the node_modules folder for Buffer. If it is not there then you need to run 'npm install'.
Buffer wasnt introduce until after Node.js version 5.10.0 (info on buffer found Here) So you also want to make sure you are using a version greater than or equal to 5.10.0. Once you install an up to date version of node, you will once again need to run 'npm install' on your project.
As discussed in the comment you can also run the command npm install buffer
if none of the above works