Tools, FAQ, Tutorials:
Reinstall Node.js Required Modules
How to reinstall Node.js Required Modules with the new version of npm?
✍: FYIcenter.com
After installing the latest version of "node" and "npm"
with "nvm", you can reinstall Node.js Required Modules to run
Node.js client applications again the WYFA network.
1. Remove all files in "node_modules":
$ cp ~/hyperledger-binaries/fabric-samples/fabcar/javascript $ sudo rm -rf node_modules
2. Re-run "npm install" command:
$ npm install ... some errors ... ... npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN fabcar@1.0.0 No repository field. added 504 packages from 1053 contributors in 151.931s npm ERR! Callback called more than once. $ ls -l -rw-rw-r-- 1 fyicenter 1735 Feb 21 23:01 enrollAdmin.js -rw-rw-r-- 1 fyicenter 2041 Feb 21 23:01 invoke.js drwxrwxr-x 261 fyicenter 12288 Apr 20 01:37 node_modules -rw-rw-r-- 1 fyicenter 153210 Apr 20 01:37 package-lock.json -rw-rw-r-- 1 fyicenter 1027 Feb 21 23:01 package.json -rw-rw-r-- 1 fyicenter 1923 Feb 21 23:01 query.js -rw-rw-r-- 1 fyicenter 2424 Feb 21 23:01 registerUser.js drwxrwxr-x 2 fyicenter 4096 Feb 21 23:01 wallet
The Node.js environment is ready for you to run those JavaScript files now. Errors in the "npm install" output is not impacting our tutorials.
Â
⇒ enrollAdmin.js - Enroll Admin to ca.example.com
⇠Reinstall npm with Node Version Manager
⇑ WYFA (Writing Your First Application)
⇑⇑ Hyperledger Tutorials
2020-01-04, 868👍, 0💬
Popular Posts:
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to add a new operation to an API on the Publisher Dashboard of an Azure API Management Service? ...