0

I'm trying to make a node.js project with PhpStorm and Express framework.

I have set up new project using the template and configure the node interpreter. But in the package.json I get these errors.

How can I resolve that?

enter image description here

Here is my Node.js and NPM configuration

enter image description here

and when running sample project. i get this socket.io display:

GET /socket.io/?EIO=3&transport=polling&t=Ln5CM5C 404 3.831 ms - 1320

enter image description here

The same thing does not happen when using WebStorm

6
  • please can you provide your idea.log (intellij-support.jetbrains.com/hc/en-us/articles/…)? Put it on some file server and provide a link here Commented May 26, 2017 at 14:27
  • Hi this is my log file: drive.google.com/open?id=0B7zeRUVgTo1AVXltZDNfbGh2NjQ Commented May 26, 2017 at 14:37
  • hi update my question with more detail. All sample project create from template Commented May 26, 2017 at 14:39
  • socket.io errors have nothing to do with this issue - they are likely a result of your attempts to add socket.io to your app (stackoverflow.com/questions/44199878/…) Commented May 26, 2017 at 15:13
  • hi the socket.io i create from WebStorm and no error. This one create new from PhPStorm which does not have socket.io installed Commented May 26, 2017 at 15:17

2 Answers 2

2

The problem is caused by AWS Elastic Beanstalk Integration plugin - it registers its own schema.json and uses it for JSON files validation. You can disable AWS Elastic Beanstalk Extensions inspections | AWS Elastic Beanstalk Extensions format violation inspection in Settings | Editor | Inspections to get rid of the error. Please follow https://github.com/viatra2/IDEA-AWS-Elastic-Beanstalk-Integration/issues/40 for updates

Sign up to request clarification or add additional context in comments.

6 Comments

thanks for your help. I follow the link there is no instruction for update. do i need to uninstalled the plugin
please see updated answer for workaround. You don't necessary need to uninstall the plugin, disabling inspection is enough
thanks, work fine know. one last question how can you see the error from the log is because of the above plugin?
from the log I can see what plugins you have installed. So I tried all them and recreated the issue
Hi lena, seem u are quite familiar with webstorm. Can help me troubleshooting this proplem. Many thanks stackoverflow.com/questions/44213145/…
|
0

Do you have anything set in File | Settings | Languages & Frameworks | Schemas and DTDs | JSON Schema?

So far there are no related issues at JetBrains bug tracker: it would worth submitting a similar bug report/question at http://youtrack.jetbrains.com/issues/WEB#newissue=yes for developers to take a look into.

1 Comment

Hi I don't have any JSON Schema. The red alert happen even when start fresh new node.js project

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.