{"id":2848,"date":"2014-02-24T00:41:36","date_gmt":"2014-02-24T00:41:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/24\/npm-packages-from-devdependencies-to-dependencies-not-working-collection-of-common-programming-errors\/"},"modified":"2014-02-24T00:41:36","modified_gmt":"2014-02-24T00:41:36","slug":"npm-packages-from-devdependencies-to-dependencies-not-working-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/02\/24\/npm-packages-from-devdependencies-to-dependencies-not-working-collection-of-common-programming-errors\/","title":{"rendered":"npm packages from devDependencies to dependencies not working-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to deploy an app based on grunt with heroku.<\/p>\n<p>One need I have is to let heroku install all npm packages. For this reason I decided to update package.json and to move everything from <code>devDependencies<\/code> to <code>dependencies<\/code>. I then run npm install and as far as all libraries are the same, I expect evrything to be working, but it doesn&#8217;t.<\/p>\n<ul>\n<li>package.json with all packages into devDependencies (WORKING)<\/li>\n<li>package.json with all packages into dependencies (NOT WORKING)<\/li>\n<\/ul>\n<p>The error I get is this<\/p>\n<pre><code>Loading \"Gruntfile.js\" tasks...ERROR\n&gt;&gt; TypeError: Cannot set property 'name' of undefined\nWarning: Task \"server\" not found. Use --force to continue.\n<\/code><\/pre>\n<p>This does not make any sense to me. Do you have any hint about?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to deploy an app based on grunt with heroku. One need I have is to let heroku install all npm packages. For this reason I decided to update package.json and to move everything from devDependencies to dependencies. I then run npm install and as far as all libraries are the same, I expect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2848","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2848"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2848\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}