This question has already been answered:

I do npm install postcss Gives npm-debug.log How do you find out about the problem?

0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'i', 1 verbose cli 'postcss' ] 2 info using npm@3.8.3 3 info using node@v5.10.0 4 silly loadCurrentTree Starting 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData postcss@^5.0.12 8 silly fetchNamedPackageData postcss 9 silly mapToRegistry name postcss 10 silly mapToRegistry using default registry 11 silly mapToRegistry registry https://registry.npmjs.org/ 12 silly mapToRegistry data Result { 12 silly mapToRegistry raw: 'postcss', 12 silly mapToRegistry scope: null, 12 silly mapToRegistry name: 'postcss', 12 silly mapToRegistry rawSpec: '', 12 silly mapToRegistry spec: 'latest', 12 silly mapToRegistry type: 'tag' } 13 silly mapToRegistry uri https://registry.npmjs.org/postcss 14 verbose request uri https://registry.npmjs.org/postcss 15 verbose request no auth needed 16 info attempt registry request try #1 at 04:19:39 17 verbose request id 8270c585c5ab0199 18 verbose etag "72WL77TBGFFKOKAOPSWIOM6TX" 19 http request GET https://registry.npmjs.org/postcss 20 http 304 https://registry.npmjs.org/postcss 21 verbose headers { date: 'Mon, 25 Apr 2016 01:19:52 GMT', 21 verbose headers via: '1.1 varnish', 21 verbose headers 'cache-control': 'max-age=300', 21 verbose headers etag: '"72WL77TBGFFKOKAOPSWIOM6TX"', 21 verbose headers age: '242', 21 verbose headers connection: 'keep-alive', 21 verbose headers 'x-served-by': 'cache-ams4141-AMS', 21 verbose headers 'x-cache': 'HIT', 21 verbose headers 'x-cache-hits': '2', 21 verbose headers 'x-timer': 'S1461547192.484115,VS0,VE0', 21 verbose headers vary: 'Accept-Encoding' } 22 silly get cb [ 304, 22 silly get { date: 'Mon, 25 Apr 2016 01:19:52 GMT', 22 silly get via: '1.1 varnish', 22 silly get 'cache-control': 'max-age=300', 22 silly get etag: '"72WL77TBGFFKOKAOPSWIOM6TX"', 22 silly get age: '242', 22 silly get connection: 'keep-alive', 22 silly get 'x-served-by': 'cache-ams4141-AMS', 22 silly get 'x-cache': 'HIT', 22 silly get 'x-cache-hits': '2', 22 silly get 'x-timer': 'S1461547192.484115,VS0,VE0', 22 silly get vary: 'Accept-Encoding' } ] 23 verbose etag https://registry.npmjs.org/postcss from cache 24 verbose get saving postcss to C:\Users\progi\AppData\Roaming\npm-cache\registry.npmjs.org\postcss\.cache.json 25 verbose correctMkdir C:\Users\progi\AppData\Roaming\npm-cache correctMkdir not in flight; initializing 26 silly install normalizeTree 27 silly loadCurrentTree Finishing 28 silly loadIdealTree Starting 29 silly install loadIdealTree 30 silly cloneCurrentTree Starting 31 silly install cloneCurrentTreeToIdealTree 32 silly cloneCurrentTree Finishing 33 silly loadShrinkwrap Starting 34 silly install loadShrinkwrap 35 silly loadShrinkwrap Finishing 36 silly loadAllDepsIntoIdealTree Starting 37 silly install loadAllDepsIntoIdealTree 38 silly rollbackFailedOptional Starting 39 silly rollbackFailedOptional Finishing 40 silly runTopLevelLifecycles Starting 41 silly runTopLevelLifecycles Finishing 42 silly install printInstalled 43 verbose stack Error: Refusing to install postcss as a dependency of itself 43 verbose stack at checkSelf (C:\Program Files\nodejs\node_modules\npm\lib\install\validate-args.js:53:14) 43 verbose stack at Array.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8) 43 verbose stack at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14) 43 verbose stack at chain (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:20:5) 43 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\install\validate-args.js:16:5 43 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35 43 verbose stack at Array.forEach (native) 43 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11 43 verbose stack at Array.forEach (native) 43 verbose stack at asyncMap (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8) 44 verbose cwd E:\OpenServer\domains\testProjects\PostCSS 45 error Windows_NT 10.0.10586 46 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "postcss" 47 error node v5.10.0 48 error npm v3.8.3 49 error code ENOSELF 50 error Refusing to install postcss as a dependency of itself 51 error If you need help, you may report this error at: 51 error <https://github.com/npm/npm/issues> 52 verbose exit [ 1, true ] 

Reported as a duplicate by D-side , aleksandr barakin , VenZell , zRrr , Nick Volynkin 9 May '16 at 3:21 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    You have a project directory called E:\OpenServer\domains\testProjects\PostCSS , I suspect that in package.json you have the line "name": "postcss", That is, you may have named your module in the same way as the module you are installing. Npm considers this an erroneous recursive dependency. Just rename your module to package.json.