-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Error: Cannot find module 'package.json' #1898
Comments
The problem seems to be in the module |
We had the problem a while ago, but it's fixed in the latest versions. |
It's happening to me currently on: I've tried wiping node modules and reinstalling the cli after a fresh install of node and npm. Still no luck |
@CoreyCole what happened to you was probably fixed by #2178, available in beta.17. |
I'm having this same problem on beta 18.
angular-cli: 1.0.0-beta.18 |
This doesn't seem to happen to everyone, and I can't repro. Will leave it open for community help. |
Try I can send a video if you want. |
@AmitMY got it, thank you!
|
As far as I can tell, it's something that is broken with |
Just an FYI for anyone else dealing with this issue. I received a similar error message when I would run any angular cli commands (ng serve, ng version etc.) saying |
Was this issue solved? :( I'm getting the same issue on:
This is my console output:
|
I had the same issue. I removed the http package from my dev dependencies and it all started to work. |
This happened to me when I made a copy of a project and ran I can not reproduce this with a new version of the app though. |
i had the same problem with FS from nodejs |
After much reading and analysis, the crypto package cause ember-cli to panic. Just remove it npm uninstall crypto --save |
There seems to be a correlation with streaming associated packages |
Hi @filipesilva , I'm quite new to this world of nodejs/angular etc. but hopefully this helps diagnose a fix... I found that running strace highlighted a lot of stat syscalls failing towards the end of its execution. It seems that Adding a symlink between the two seem to fix the issue for me. Could this be a simple typo in a recent release? Does this help?
strace output for reference:
|
Fixed by #3695 |
[ERROR] Error with .\node_modules\ionic-angular\package.json file: FILE_NOT_FOUND |
@RanaAbdullah2017 this is the Angular CLI issue thread, please look for the Ionic support channels when you have problems running Ionic. |
I like turtles |
at Module._compile (module.js:635:30) when i start the application through PM2 am facing this issue please give me the solution for this .. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Mac OS X 10.11.5 (El Capitan)
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: 1.0.0-beta.11-webpack.8
node: 6.5.0
os: darwin x64
do on your code? etc.
clone from repository
npm install --save-dev angular-cli@webpack
ng version
more information.
ng version
works fine outside of my project (using the global installation of angular-cli).The text was updated successfully, but these errors were encountered: