This package does not exist in the NPM repository
dengbupapapa opened this issue · 4 comments
hi,This package does not exist in the NPM repository, and the cloned git package does not work properly
Hi @dengbupapapa , this packages is yet to be released on npm.
What is not working properly? can you provide more context with reporducible repo?
Hi @dengbupapapa , this packages is yet to be released on npm.
What is not working properly? can you provide more context with reporducible repo?
Here's my example: https://github.com/dengbupapapa/webpack5-install-webpack-plugin-example/tree/main
$ node config.js
The WebPack version used is ^5.46.0。Error is as follows:
E:\dev\example\webpackConfigExample\node_modules\install-webpack-plugin\src\plugin.js:208
return next();
^
TypeError: next is not a function
at InstallPlugin.resolveModule (E:\dev\example\webpackConfigExample\node_modules\install-webpack-plugin\src\plugin.js:208:20)
at _next0 (eval at create (E:\dev\example\webpackConfigExample\node_modules\tapable\lib\HookCodeFactory.js:33:10), :8:1)
at eval (eval at create (E:\dev\example\webpackConfigExample\node_modules\tapable\lib\HookCodeFactory.js:33:10), :30:1)
at E:\dev\example\webpackConfigExample\node_modules\enhanced-resolve\lib\Resolver.js:410:5
at eval (eval at create (E:\dev\example\webpackConfigExample\node_modules\tapable\lib\HookCodeFactory.js:33:10), :16:1)
at E:\dev\example\webpackConfigExample\node_modules\enhanced-resolve\lib\DirectoryExistsPlugin.js:41:15
at processTicksAndRejections (internal/process/task_queues.js:81:21)
I cant install it either, it's give me an 404 error when i run npm install --save-dev install-webpack-plugin
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/install-webpack-plugin - Not found
npm ERR! 404
npm ERR! 404 'install-webpack-plugin@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
Hi @dengbupapapa , this packages is yet to be released on npm.
What is not working properly? can you provide more context with reporducible repo?Here's my example: https://github.com/dengbupapapa/webpack5-install-webpack-plugin-example/tree/main
$ node config.js
The WebPack version used is ^5.46.0。Error is as follows:
E:\dev\example\webpackConfigExample\node_modules\install-webpack-plugin\src\plugin.js:208
return next();
^TypeError: next is not a function
at InstallPlugin.resolveModule (E:\dev\example\webpackConfigExample\node_modules\install-webpack-plugin\src\plugin.js:208:20)
at _next0 (eval at create (E:\dev\example\webpackConfigExample\node_modules\tapable\lib\HookCodeFactory.js:33:10), :8:1)
at eval (eval at create (E:\dev\example\webpackConfigExample\node_modules\tapable\lib\HookCodeFactory.js:33:10), :30:1)
at E:\dev\example\webpackConfigExample\node_modules\enhanced-resolve\lib\Resolver.js:410:5
at eval (eval at create (E:\dev\example\webpackConfigExample\node_modules\tapable\lib\HookCodeFactory.js:33:10), :16:1)
at E:\dev\example\webpackConfigExample\node_modules\enhanced-resolve\lib\DirectoryExistsPlugin.js:41:15
at processTicksAndRejections (internal/process/task_queues.js:81:21)
@snitin315
Webpack 5.51.1
I have the same problem
next
is not a function , but an object like this
{
"fileDependencies": {
"_set": {},
"_toMerge": {},
"_toDeepMerge": [],
"_needMerge": false,
"_deopt": false
},
"contextDependencies": {
"_set": {},
"_toMerge": {},
"_toDeepMerge": [],
"_needMerge": false,
"_deopt": false
},
"missingDependencies": {
"_set": {},
"_toMerge": {},
"_toDeepMerge": [],
"_needMerge": false,
"_deopt": false
},
"stack": {}
}