Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'package.json' #2997

Closed
AmitMY opened this issue Nov 3, 2016 · 4 comments
Closed

Cannot find module 'package.json' #2997

AmitMY opened this issue Nov 3, 2016 · 4 comments
Labels
needs: repro steps We cannot reproduce the issue with the information given

Comments

@AmitMY
Copy link
Contributor

AmitMY commented Nov 3, 2016

Please provide us with the following information:

OS?

Windows 10

Versions.

Cannot find module 'package.json'
Error: Cannot find module 'package.json'
at Function.Module._resolveFilename (module.js:472:15)
at Function.Module._load (module.js:420:25)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at AddonDiscovery.discoverAtPath (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:205:20)
at AddonDiscovery. (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:114:26)
at Array.map (native)
at AddonDiscovery.discoverFromDependencies (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:109:68)
at AddonDiscovery.discoverProjectAddons (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:48:29)
at Project.discoverAddons (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\project.js:353:40)
at Project.initializeAddons (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\project.js:372:8)
at Project.eachAddonCommand (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\project.js:425:10)
at module.exports (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\cli\lookup-command.js:33:13)
at CLI. (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\cli\cli.js:34:26)
at tryCatch (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:538:12)
at invokeCallback (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:553:13)
at publish (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:521:7)
at flush (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Repro steps.

No idea.

The log given by the failure.

Cannot find module 'package.json'
Error: Cannot find module 'package.json'
at Function.Module._resolveFilename (module.js:472:15)
at Function.Module._load (module.js:420:25)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at AddonDiscovery.discoverAtPath (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:205:20)
at AddonDiscovery. (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:114:26)
at Array.map (native)
at AddonDiscovery.discoverFromDependencies (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:109:68)
at AddonDiscovery.discoverProjectAddons (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\addon-discovery.js:48:29)
at Project.discoverAddons (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\project.js:353:40)
at Project.initializeAddons (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\project.js:372:8)
at Project.eachAddonCommand (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\models\project.js:425:10)
at module.exports (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\cli\lookup-command.js:33:13)
at CLI. (D:\xampp\htdocs\Fronend\node_modules\angular-cli\lib\cli\cli.js:34:26)
at tryCatch (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:538:12)
at invokeCallback (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:553:13)
at publish (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:521:7)
at flush (D:\xampp\htdocs\Fronend\node_modules\rsvp\dist\rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Mention any other details that might be useful.

I worked on my front, for a while, and then started work on the back, The backend required 4 new dependencies: 'express', 'body-parser', 'request', 'http'

I thought that there is no harm to currently do it in the same project.

@AmitMY
Copy link
Contributor Author

AmitMY commented Nov 3, 2016

Issue discovered!
When installing 'http' it says:

"http": "0.0.0",

You should add a handler..

@filipesilva filipesilva added the needs: repro steps We cannot reproduce the issue with the information given label Nov 4, 2016
@filipesilva
Copy link
Contributor

Haven't seen that error before. I really need repro steps if you want me to look into this issue.

@filipesilva
Copy link
Contributor

filipesilva commented Nov 4, 2016

Actually, dupe of #1898

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: repro steps We cannot reproduce the issue with the information given
Projects
None yet
Development

No branches or pull requests

2 participants