The project generation tool that previously installed Express with NPM globally: npm install -g express-generator
Recently generated by the express command on the Mac When the Express project was found to be in the project, it was not possible to install project dependencies via npm install. Express ExpressProjectName
Prompt for access to the .npm directory. Npm ERR! Error: EACCES, open '/Users/xyq/.npm/debug/0.7.4/package/package.json'npm ERR! { [Error: EACCES, open '/Users/xyq/.npm/debug/0.7.4/package/package.json']npm ERR! errno: 3,npm ERR! code: 'EACCES',npm ERR! path: '/Users/xyq/.npm/debug/0.7.4/package/package .json',npm ERR! parent: 'sohunews-node' }npm ERR!npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.2.0npm ERR! command " ;node" "/usr/local/bin/npm" "install"npm ERR! cwd /Users/xyq/project/sohu/sohunews-nodenpm ERR! node -v v0.10.29npm ERR! npm -v 1.4. 14npm ERR! path /Users/xyq/.npm/debug/0.7.4/package/package.jsonnpm ERR! code EACCESnpm ERR! errno 3npm ERR! stack Error: EACCES, open '/Users/xyq/.npm/debug/0.7.4/package/package.json'npm ERR!npm ERR! Additional logging details can be found in:npm ERR! /Users/xyq/project/sohu/sohunews-node/npm-debug.lognpm ERR! not ok code 0
It may be because the .npm directory was created under the root user. I currently executing user npm install the non-root user. SO, it is OK to change the .npm directory permissions in the root directory to the current user's permissions. Sudo chown -R $USER:$GROUP ~/.npm
If it still doesn't work, then emptying the tmp directory should work fine. Rmdir ~/tmp
Now executing npm install should be able to install project dependencies normally.
Many media and experts believe that Linux believes that Linux is more secure than Windows. However,
The most popular Linux operating system distribution is Ubuntu. But this time we are running ASP.N
One serial port control Usually we use direct serial port for video server, video recorder, switcher
nmap is a network port scanner. Its main function is to check a group of target hosts to see which
Using Nginx as both a web cache server and load balancing
System administrators give advice to new Linux/Unix people
Detailed IPTABLES configuration under Linux
How to use video conversion software under Linux operating system
Linux hwclock display and setting hardware clock command details
After installing xen, the boot will be black, what happened?
Centos build git repository gitosis
How to solve USB unrecognized under Linux?
Linux system optimization ideas
Tiny4412 assembly water light code, Tiny4412 bare metal LED operation
The server does not support the curl
Numerous Win10 user feedback: I want to hide the fixed search and task preview button
Solve the tutorial that Win8 operating system can't log in
Win8 uses tools FastCopy to quickly copy large files for fast transfer
Win10 Mobile Preview 14385 users can choose to quit the Insider program
How does the win7 computer view the name of the other computer?
Microsoft released Windows 8.1 or not
What should I do if the C drive is getting bigger after upgrading Win8.1?