question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'autoprefixer'

See original GitHub issue

I’m recevice this on first installation:

Running "run_grunt:sliderMakeCss" (run_grunt) task
smartbin-ors-app | --> starting  "bower_components/angularjs-slider/Gruntfile.js"
smartbin-ors-app | --> reporting "bower_components/angularjs-slider/Gruntfile.js"
smartbin-ors-app |   |  Initializing
smartbin-ors-app |   |  Command-line options: --gruntfile=/ors-app/bower_components/angularjs-slider/Gruntfile.js, --debug=1, --verbose
smartbin-ors-app |   |  
smartbin-ors-app |   |  Reading "Gruntfile.js" Gruntfile...OK
smartbin-ors-app |   |  
smartbin-ors-app |   |  Registering Gruntfile tasks.
smartbin-ors-app |   |  Reading package.json...OK
smartbin-ors-app |   |  Parsing package.json...OK
smartbin-ors-app |   |  Loading "Gruntfile.js" tasks...ERROR
smartbin-ors-app |   |  >> Error: Cannot find module 'autoprefixer'
smartbin-ors-app |   |  >>     at Function.Module._resolveFilename (module.js:547:15)
smartbin-ors-app |   |  >>     at Function.Module._load (module.js:474:25)
smartbin-ors-app |   |  >>     at Module.require (module.js:596:17)
smartbin-ors-app |   |  >>     at require (internal/module.js:11:18)
smartbin-ors-app |   |  >>     at Object.module.exports (/ors-app/bower_components/angularjs-slider/Gruntfile.js:163:11)
smartbin-ors-app |   |  >>     at loadTask (/ors-app/node_modules/grunt/lib/grunt/task.js:315:10)
smartbin-ors-app |   |  >>     at Task.task.init (/ors-app/node_modules/grunt/lib/grunt/task.js:450:5)
smartbin-ors-app |   |  >>     at Object.grunt.tasks (/ors-app/node_modules/grunt/lib/grunt.js:129:8)
smartbin-ors-app |   |  >>     at Liftoff.<anonymous> (/usr/local/lib/node_modules/grunt-cli/bin/grunt:66:13)
smartbin-ors-app |   |  >>     at Liftoff.execute (/usr/local/lib/node_modules/grunt-cli/node_modules/liftoff/index.js:203:12)
smartbin-ors-app |   |  
smartbin-ors-app |   |  Running tasks: css
smartbin-ors-app |   |  Warning: Task "css" not found. Use --force to continue.
smartbin-ors-app |   |  
smartbin-ors-app |   |  Aborted due to warnings.
smartbin-ors-app |   |  
smartbin-ors-app | --> failed "bower_components/angularjs-slider/Gruntfile.js" (525ms)
smartbin-ors-app | --> failed sliderMakeCss @ "bower_components/angularjs-slider/Gruntfile.js"
smartbin-ors-app | 
smartbin-ors-app | Warning: 1 gruntfile failed and completed 0 (528ms)
smartbin-ors-app |  Use --force to continue.
smartbin-ors-app | 
smartbin-ors-app | Aborted due to warnings.
smartbin-ors-app | 
smartbin-ors-app | 
smartbin-ors-app | Execution Time (2020-08-18 14:12:20 UTC-0)
smartbin-ors-app | loading tasks            815ms  β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡ 21%
smartbin-ors-app | browserify:turf          495ms  β–‡β–‡β–‡β–‡β–‡ 13%
smartbin-ors-app | less:development         166ms  β–‡β–‡ 4%
smartbin-ors-app | prettier:files            1.8s  β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡β–‡ 48%
smartbin-ors-app | run_grunt:sliderMakeCss  529ms  β–‡β–‡β–‡β–‡β–‡β–‡ 14%
smartbin-ors-app | Total 3.8s
smartbin-ors-app | 
smartbin-ors-app exited with code 6

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
trevorwilfcommented, Aug 21, 2020

upgrade my npm to version 6.14.7 this has resolved the issue

1reaction
trevorwilfcommented, Aug 21, 2020

I am having the same issue npm version: 3.5.2 OS: ubuntu 18.04

I did do the npm install in bower_components/angular-slider but I get the following error

npm ERR! Linux 3.10.0-1062.4.2.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror     <http://github.com/npm/npm/issues>
Read more comments on GitHub >

github_iconTop Results From Across the Web

getting "Cannot find module 'autoprefixer'" error during setup ...
I've checked that I have autoprefixer in my node_modules folder and tried reinstalling it, but I get the same error. In my package.json...
Read more >
Error: Cannot find module 'autoprefixer' Β· Issue #177 - GitHub
After cloning the repository and runing npm install and then npm run dev I get the following: ERROR in ./~/css-loader?
Read more >
Solved- β€œCannot find module 'autoprefixer'” error tailwindcss
This error can be fixed easily if you just uninstall and reinstall the dependencies. ... It should work and it will create the...
Read more >
autoprefixer - npm
PostCSS plugin to parse CSS and add vendor prefixes to CSS rules using values from Can I Use. It is recommended by Google...
Read more >
Error: Loading PostCSS Plugin failed: Cannot find module &#3
Expected behavior. I expected it to work. Actual behavior. Failed to compile. ./node_modules/mdbvue/lib/css/mdb.min.css (.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found