0
當我做:如何安裝npm包裝的叉子?
rm -r node_modules \
&& npm i webpack-cleanup-plugin \
&& node -r webpack-cleanup-plugin -e 'console.log("success")'
它成功。不過這樣一來:
rm -r node_modules \
&& npm i bassarisse/webpack-cleanup-plugin \
&& node -r webpack-cleanup-plugin -e 'console.log("success")'
它失敗:
module.js:472
throw err;
^
Error: Cannot find module 'webpack-cleanup-plugin'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at module.js:656:12
at Array.forEach (native)
at Function.Module._preloadModules (module.js:655:12)
at preloadModules (bootstrap_node.js:391:38)
at startup (bootstrap_node.js:107:9)
at bootstrap_node.js:533:3
我在做什麼錯?
@ p0k8_意味着什麼? –