Vscode plug-in development packaging times error

Mengxin tried vscode plug-in development for the first time. All the steps were carried out according to the example of the official website hello world. Based on the example of the official website, a dependency package axios was added.

clipboard.png

clipboard.png

shows dependency loss.

npm install has been executed, publisher registration, adding token, and so on have all been tried.
axios can be packaged successfully by putting it into devDependencies, but it cannot be run after installing the packaged vsi file. My guess is that there is also a lack of axios dependency, because this package production environment is needed.

ps: the hello world example on the official website is packaged successfully.

what is the reason for this, everyone? I opened the installation directory of plug-ins written by other bosses, and they also have dependencies and dependent packages in their package.json, and there is a node_modules folder. Is it for this reason that there is no node_modules folder when I open the installation directory after I install the packaged plug-in?


found the reason. Npm was used to generate node modules in yo code for the first time, and then I used axios under cnpm, which caused package-lock.json not to be updated. Just delete the node_modules and npm install it again.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3eae7-41474.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3eae7-41474.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?