Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Cannot find module 'safe-buffer' #16905

Closed
Luffyying opened this issue Jun 2, 2017 · 9 comments
Closed

Cannot find module 'safe-buffer' #16905

Luffyying opened this issue Jun 2, 2017 · 9 comments
Labels

Comments

@Luffyying
Copy link

I'm opening this issue because:

when I enter the command :npm ,it hint as following:
Error: Cannot find module 'safe-buffer'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Dell\AppData\Roaming\npm\node_modules\npm\node_modules\request\lib\helpers.js:5:36)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Dell\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code MODULE_NOT_FOUND

npm ERR! Cannot find module 'safe-buffer'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

  • npm -v prints:3.10.10
  • node -v prints:6.10.3
  • npm config get registry prints:
  • Windows
  • Network issues:

thankyou !

@kthy
Copy link

kthy commented Jun 2, 2017

I'm experiencing exactly the same problem. Why did you close the issue, @Luffyying ?

@Luffyying
Copy link
Author

Luffyying commented Jun 2, 2017 via email

@kthy
Copy link

kthy commented Jun 2, 2017

Thanks for the reply. FYI, uninstalling Node.js, manually deleting the npm and npm-cache directories under AppData and reinstalling fixed the problem for me.

@Luffyying
Copy link
Author

Luffyying commented Jun 2, 2017 via email

@Robertbaelde
Copy link

I have the same issue, how do i resolve this? i already uninstalled and installed node

@Luffyying
Copy link
Author

Luffyying commented Jun 8, 2017 via email

@kenany kenany added the support label Jun 8, 2017
@gilesbradshaw
Copy link

or the local npm..

@Yim-Sekny
Copy link

Actually in my machine even delete global npm or uninstall node.js and install it agian but still not work.


so my solution is uninstall npm and go to delete folder npm and npm-cache in C:\Users\pc-name\AppData\Roaming then install it again

@pengxingyun
Copy link

you can try npm install safe-buffer...
I use this to resolve. @yimseknyCorarl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants