I have a node package that installed globally. With my current env set up, there are some conflicting issues but I was able to find a solution but I would like to change the bundled.js file for that library.
Instead, what I would like to do is install that package to the local project's directory and make the changes there only. However, when I try to do this, it seems like when I run the node module, it references the globally installed version of that package?
Is there a way where I can specify, when I run the package, to run off the local copy rather than the global one? Or am I going to have to delete the global one?
From your project folder, to execute your local install:
run ./node_modules/truffle/build/cli.bundled.js init
只需删除全局node_modules
文件夹: C:\\Users\\username\\node_modules
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.