简体   繁体   中英

Running scripts on package.json

I'm working on a large codebase and I'm trying to run scripts from the package.json file it looks like this:

在此处输入图像描述

now whenever I run "npm start" it goes to the dev script then it throws me an error:

在此处输入图像描述

but I found a way with this one I changed the./node_modules/.bin/webpack to "dev": "webpack serve. . ."

and it works

But the problem is I would mess-up the codebase if I apply some changes on the package.json

I hope you can help me with this

The error stating that. is not recognized is coming from Command Prompt and not PowerShell. You should either refactor those commands to work with Command Prompt or make a seperate script that doesn't run with npm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM