Recently want to try the current red fried chicken Nodejs, in the installation of the configuration, the following error occurred:
C:\NODEJS\NPMJS\BIN>CD. C:\NODEJS\NPMJS>CD. C:\NODEJS>NPM-V1.4.28C:\NODEJS>NPM config set prefix "D:\NodeLearn\node-global" c:\nodejs>npm config set Cache "D:\NodeLearn\node-cache" error:enoent, stat ' D:\NodeLearn\node-global '
The reason is that there is no manual setup of the folder: Node-global and Node-cache, after receiving the establishment folder, will not error.
C:\NODEJS>NPM config set cache "D:\NodeLearn\node-cache" c:\nodejs>npm config set prefix "D:\NodeLearn\ Node-global "
Then add D:\NodeLearn\node-global, C:\nodejs\node_modules to the system path.
Install Express:
C:\NODEJS>NPM Install express[email protected] Node_modules\express├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email Protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected] ├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected] ([email Protected]) ├──[email protected] ([email protected]) ├──[email protected] ([email protected]) ├──[email protected] ([email protected], [email protected], [email protected], [email Protected]) ├──[email protected] ([email protected], [email protected]) ├──[email protected] ([ Email protected]) └──[email protected] ([email protected], [email protected]) C:\nodEjs>
Install Baidu FIS:
C:\NODEJS>NPM Install-g FISNPM ERR! git clone https://github.com/pipobscure/fsevents undefinedNPM err! git clone https://github.com/pipobscure/fsevents undefinedNPM WARN Optional DEP failed, continuing [email Protected]+https://github.com/pipobscure/fsevents#7dcdf9fa3f8956610fd6f69f72c67bace2de7138NPM WARN Optional DEP failed, continuing [email protected]D:\NodeLearn\node-global\fis-D:\NodeLearn\node-Global\node_modules\fis\bin\fis[email protected]1.8.13 D:\NodeLearn\node-Global\node_modules\fis├──fis[Email protected]├──fis[Email protected]├──fis[Email protected]├──fis-deploy-default@0.0.2├──[email protected]0.6.2├──[email protected]1.3.2 ([email protected]) ├──fis[Email protected] ([email protected]) ├──fis[Email protected] ([email protected]) ├──fis[Email protected] ([email protected], [email protected], [email protected]) ├──fis[Email protected] ([email protected], [email protected]) ├──fis[Email protected] ([email protected], [email protected]) ├──fis[Email protected] ([email protected]) └──fis[Email protected] ([email protected], [email protected])
Installation reported a mistake, but in the end it seems to have succeeded ^_^?
NPM error error:enoent, stat ' D:\NodeLearn\node-global '