-
What's the correct way to add dependencies to When I'm trying to define an NPM task like this task installPackages(type: NpmTask) {
args = ['install', 'webpack']
} I get an error like the following:
I'm running Windows 10, Gradle 7.5.1, Amazon JDK 11 with the latest (currently) version of the plugin. I know I can manually add all those dependencies to Can you please let me know what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
UPDATE: i guess there's something conceptually wrong in what i'm doing. I have
in
fails with the same error code and message. |
Beta Was this translation helpful? Give feedback.
-
The general setup would be something like examples/simple-node/npm, where you handle The commands look correct to me based on the documentation, but try with |
Beta Was this translation helpful? Give feedback.
The general setup would be something like examples/simple-node/npm, where you handle
package.json
through manual interactions with a localnpm
(or with an editor if you're particularly brave)The commands look correct to me based on the documentation, but try with
npmCommand
set torun
anddev:server
asargs
instead.There may be a documentation issue here, I need to go through the documentation properly and clean it up.