NPM error error:enoent, stat ' D:\NodeLearn\node-global '

Source: Internet
Author: User

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 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.