Skip to content

Cannot find module 'buffer-shims' #3131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
watashiSHUN opened this issue Nov 14, 2016 · 8 comments
Closed

Cannot find module 'buffer-shims' #3131

watashiSHUN opened this issue Nov 14, 2016 · 8 comments

Comments

@watashiSHUN
Copy link

Please provide us with the following information:

OS?

Ubuntu 16.04.1 LTS

Versions.

angular-cli: 1.0.0-beta.19-3
node: 4.2.6
os: linux x64

Repro steps.

running npm install -g angular-cli then run ng --help

The log given by the failure.

Cannot find module 'buffer-shims'
Error: Cannot find module 'buffer-shims'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
.....

Mention any other details that might be useful.

I resolved it by running npm install -g buffer-shims, but I would assume it should be done during npm install -g angular-cli


Thanks! We'll be in touch soon.

@wgualla
Copy link

wgualla commented Nov 16, 2016

try

npm install -g buffer-shims

ng help

this works for me

@ghost
Copy link

ghost commented Nov 17, 2016

Had the same problem, resolved with npm install -g buffer-shims but I agree. This should be part of the original setup. Maybe it's missing as a dependency?

watashiSHUN added a commit to watashiSHUN/angular-cli that referenced this issue Nov 17, 2016
@fratzik
Copy link

fratzik commented Nov 20, 2016

npm install -g buffer-shims worked for me too!
thanks

@pablo-novoa
Copy link

make it official, npm install -g buffer-shims works!!!!

@hansl
Copy link
Contributor

hansl commented Dec 8, 2016

We don't require buffer-shims; webpack-dev-server and enhanced-resolve need those. There is a problem using yarn right now but npm should work fine. Closing this as WAI.

@hansl hansl closed this as completed Dec 8, 2016
@harryjacksol
Copy link

i tried
npm install -g buffer-shims
npm install buffer-shims

not works for me. it shows same error

Cannot find module 'buffer-shims'
Error: Cannot find module 'buffer-shims'

@Davy-F
Copy link

Davy-F commented Jun 16, 2017

I was stuck with this error as well and it turned out to be affiliated with node-sass.
In the end this post helped: sass/node-sass#1991

Fix:

  1. Delete node_modules
  2. Delete package-lock.json
  3. Call the following:
npm cache clean
npm install

On npm v5+ you will need to call npm cache clean --force

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants