Netbeans cannot run package.json on MAVEN web application

Using Netbeans 8.2, I created a new MAVEN web application. I placed the working file package.jsoninside the folder Web Pages, so the path

C: \ Users \ xxx \ Documents \ NetBeansProjects \ MyApp \ SRC \ main \ WebApp \ package.json

I left a click on the file package.jsonand pressed the button npm install. I was then greeted by these errors / warnings

"C:\Program Files\nodejs\npm.cmd" "install"
npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\Nick\Documents\NetBeansProjects\MyApp\package.json'
npm WARN EPACKAGEJSON C:\Users\xxx\Documents\NetBeansProjects\MyApp No description
npm WARN EPACKAGEJSON C:\Users\xxx\Documents\NetBeansProjects\MyApp No repository field.
npm WARN EPACKAGEJSON C:\Users\xxx\Documents\NetBeansProjects\MyApp No README data
npm WARN EPACKAGEJSON C:\Users\xxx\Documents\NetBeansProjects\MyApp No license field.
Done.

I noticed that Netbeans tried to find package.json in the wrong place

C: \ Users \ Nick \ Documents \ NetBeansProjects \ MyApp \ package.json '

And I can’t understand how to tell the IDE where to look for it.

When will I go to

Project Properties> JavaScript Libraries> npm

I get an empty view with

package.json not found

, netbeans, "package.json" ? , HTML5, npm - Java.

+4

Source: https://habr.com/ru/post/1666041/


All Articles