简体   繁体   中英

Auth0 angular2-jwt /node_modules/buffer/package.json 404 (Not Found)

When I follow steps from Auth0 docs ( https://auth0.com/docs/quickstart/spa/angular2/08-calling-apis ), I get this message :

GET http://localhost:5556/node_modules/buffer/package.json 404 (Not Found)

(index):50 Error: Error: XHR error (404 Not Found) loading

Do you know how I can fix it ?

My project is built with : https://github.com/vyakymenko/angular2-seed-express

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM