How to introduce a specified version of d3 in a vue project?

for example: at present, I want to introduce the 3.1.6 version of d3
the following code checked on the Internet was not successfully installed

npm install --save-dev d3@3.1.6
Mar.13,2021

find d3 in package.json, then change the later version number to what you need, and then npm install

Menu