Saturday, 10 June 2017

Cannot start/install package.json dependecies in a nested directory with package.json

npm start and npm install is failing when i have two package.jsons in different directories within the same app folder.

src/
   client/
      package.json
   server.js
   package.json

In the first try running npm install in src/ is fine, but when i try to run npm install in src/client/ it giving me errors.

So i separated the client folder temporarily and run the npm install of course and its worked, but after putting it back again to src folder and tried running npm start in src/ directory the error went back the same goes for client/ folder.

I had a message error telling me to run in root/Administrator mode. But using Administrator mode wont work either.

This folder structure is supposed to build a mysql, express, angular2 and nodejs (MEA2N) application in windows 10.



via Shift N' Tab

No comments:

Post a Comment