compiler.plugin is not a function - node.js

I run npm run start command and I am getting this error:-
Failed to compile.
compiler.plugin is not a function
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ipfs-image-app#0.1.0 start: node scripts/start.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ipfs-image-app#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yash mudgal\AppData\Roaming\npm-cache_logs\2022-02-28T06_56_44_910Z-debug.log
Please help me.

for error --compiler.plugin is not a function
npm install --save-dev webpack-shell-plugin-next
for error --npm ERR! code ELIFECYCLE
Cleaning Cache and Node_module are not enough. Follow this steps:
1-npm cache clean --force
2-delete node_modules folder
3-delete package-lock.json file
4 -npm install
run these commands before npm start.

Related

Failed to start npm start

I am trying to run my React project, but I am not able to run it. The project contains typescript enabled with eslint. I tried to solve the issue with the help of previously asked questions Question, but that did not work for me.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! slipstream-frontend#0.3.0 lint: `eslint --ext js,ts,tsx src`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the slipstream-frontend#0.3.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ROHIT AGGARWAL\AppData\Roaming\npm-cache\_logs\2020-10-12T06_02_13_786Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! slipstream-frontend#0.3.0 prestart: `npm run lint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the slipstream-frontend#0.3.0 prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ROHIT AGGARWAL\AppData\Roaming\npm-cache\_logs\2020-10-12T06_02_15_471Z-debug.log
I have tried to delete package.json file and then
npm cache clean
npm install
That didn't worked for me.
Yes this might happen,
Start with commands in terminal
npm unit react-app app_name
cd app_name
npm start

laravel npm run production Compiled successfully,but npm ERR! code ELIFECYCLE

npm run dev
was successful.
npm run prod
was unsuccessful with:
ERR! code ELIFECYCLE
npm log message after npm run prod:
DONE Compiled successfully in 91052ms 8:46:32 AM
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-13T08_46_33_901Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # prod: `npm run production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-13T08_46_33_920Z-debug.log
To maintain team`s package version consistency,package version is fixed in package-lock.json.
What is the problem?
You could try to clear the npm cache and by deleting the node_module folder.
Remove npm Cache
$ npm cache clean --force
Delete node_modules by
$ rm -rf node_modules package-lock.json
Or delete it manually.
And then run
$ npm install

npm install fails with npm.cmd: command not found

We currently do sudo npm i instead of npm i to circumvent this issue. Our Ubuntu team members can't do this however because nvm isn't installed for root. NVM and N both have this same issue.
geoyws-mbp:ifca-construction-react geoyws$ npm i
> ifca-construction-react#0.1.0 prepare /Users/geoyws/work/src/ifca/ifca-react/src/modules/ifca-construction-react
> npm.cmd run compile
sh: npm.cmd: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! ifca-construction-react#0.1.0 prepare: `npm.cmd run compile`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ifca-construction-react#0.1.0 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/geoyws/.npm/_logs/2019-10-03T09_40_46_545Z-debug.log
The problem was that one of our engineers changed our npm start script from npm run compile to npm.cmd run compile in our package.json. Either that or create-react-app did that, which is very unwise because people work with various OSes on the same codebase.

npm install error after uninstalling Hyperledger-composer - Blockchain

Hello I'm currently learning hyperledger composer but I reinstalled it and i'm installing it again. Now when I npm install, I get the error below. If anyone can help me out that would be great.
➜ Dabbous-Innopay npm install
> fabric-dev-servers#0.0.14 prepare /Users/alydabbous/code/Dabbous-Innopay
> npm run build-archives
> fabric-dev-servers#0.0.14 build-archives /Users/alydabbous/code/Dabbous-Innopay
> gulp --gulpfile .travis/gulp.js
[16:45:08] No gulpfile found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers#0.0.14 build-archives: `gulp --gulpfile .travis/gulp.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers#0.0.14 build-archives script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alydabbous/.npm/_logs/2018-11-05T15_45_08_550Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers#0.0.14 prepare: `npm run build-archives`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers#0.0.14 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alydabbous/.npm/_logs/2018-11-05T15_45_08_587Z-debug.log
Make sure You are Using Node 8.9 or bellow:
node -v
if output is more than 8.9 then uninstall node and re-install it with 8.9 version or use nvm(Node Version Manager). Google it you can find above process easily.

Npm start gives the error

everyone!
I am trying to run default task on npm run command on Windows 10.
That is an error that I have got while using it.
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR! builderLight#0.0.15 start: `bower install && gulp --debug`
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the builderLight#0.0.15 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2018-04-29T15_01_45_882Z-debug.log
How to fix this bug?
You simply have to run first: npm install or bower install

Resources