{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/17481","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/17481/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/17481/comments","events_url":"https://api.github.com/repos/npm/npm/issues/17481/events","html_url":"https://github.com/npm/npm/issues/17481","id":239052804,"number":17481,"title":"NPM is downgrading packages during package installs.  Also - Error: Cannot find module 'dezalgo'","user":{"login":"oleersoy","id":1163873,"avatar_url":"https://avatars0.githubusercontent.com/u/1163873?v=3","gravatar_id":"","url":"https://api.github.com/users/oleersoy","html_url":"https://github.com/oleersoy","followers_url":"https://api.github.com/users/oleersoy/followers","following_url":"https://api.github.com/users/oleersoy/following{/other_user}","gists_url":"https://api.github.com/users/oleersoy/gists{/gist_id}","starred_url":"https://api.github.com/users/oleersoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleersoy/subscriptions","organizations_url":"https://api.github.com/users/oleersoy/orgs","repos_url":"https://api.github.com/users/oleersoy/repos","events_url":"https://api.github.com/users/oleersoy/events{/privacy}","received_events_url":"https://api.github.com/users/oleersoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-06-28T04:57:05Z","updated_at":"2017-07-02T18:09:14Z","closed_at":null,"body":"#### I'm opening this issue because:\r\n\r\n  - [x ] npm is producing an incorrect install.\r\n  - [x ] npm is doing something I don't understand.\r\n\r\nSo I'm building css with postcss and visually inspecting test results.  This part is strange.  I installed another one of my modules `@superflycss/utilities-fonts`, and rebuilt the css, and I think NPM downgraded some of my other dependencies, because the css components I'm using in the test would no longer render, and when I looked at package.json, the dependencies were older that what I thought they should be.  But the primary proof that I was relying on is that the css component simply would not render at all anymore.  So I ran `npm-check-updates` to get them the versions back up to where they were supposed to be, and after that I started getting this error:\r\n``` \r\nError: Cannot find module 'dezalgo'\r\n    at Function.Module._resolveFilename (module.js:469:15)\r\n    at Function.Module._load (module.js:417:25)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (/home/ole/Junk/@superflycss/utilities-colors/node_modules/npm/lib/utils/correct-mkdir.js:2:15)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n``` \r\nThis is not the first time I have gotten this.  The previous time I just nuked `node_modules` and reinstalled all the dependencies and everything worked fine.  I'm going to do that this time as well....just find this behavior very odd..."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/312507532","html_url":"https://github.com/npm/npm/issues/17481#issuecomment-312507532","issue_url":"https://api.github.com/repos/npm/npm/issues/17481","id":312507532,"user":{"login":"oleersoy","id":1163873,"avatar_url":"https://avatars0.githubusercontent.com/u/1163873?v=3","gravatar_id":"","url":"https://api.github.com/users/oleersoy","html_url":"https://github.com/oleersoy","followers_url":"https://api.github.com/users/oleersoy/followers","following_url":"https://api.github.com/users/oleersoy/following{/other_user}","gists_url":"https://api.github.com/users/oleersoy/gists{/gist_id}","starred_url":"https://api.github.com/users/oleersoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleersoy/subscriptions","organizations_url":"https://api.github.com/users/oleersoy/orgs","repos_url":"https://api.github.com/users/oleersoy/repos","events_url":"https://api.github.com/users/oleersoy/events{/privacy}","received_events_url":"https://api.github.com/users/oleersoy/received_events","type":"User","site_admin":false},"created_at":"2017-07-02T18:09:14Z","updated_at":"2017-07-02T18:09:14Z","body":"What I did was make sure to delete `package-lock.json` from my projects.  If you are using git make sure you run `git rm package-lock.json` to remove it from git as well.  Running `npm i` may regenerate `package-lock.json`.  If it does delete it again.  I use [npm-check-update](https://www.npmjs.com/package/npm-check-updates) since I'm iterating on multiple CSS repositories.  Here's a [sample configuration of one of them](https://github.com/superflycss/component-header)."}}
{"actor":{"display_login":"oleersoy"}}