(Fail) configuration vue + nginx + uwsgi luffy project

2019-6-2 10:06:55

I just can not gnaw configure Nginx access vue

Perhaps there is still an error

Maybe there is something there are changes to vue

And so learn to understand completely finished vue might have to configure it! Like their bbs project!

......

Also found that their lack of knowledge!

Put some stepped pit (no one knows that there are a lot of pit Perhaps these pits can make you better grow up !!!!)

 

The harder, the more lucky! Never overestimate yourself!

Now then start preparing four projects is to do fun things with local luffy project now!

I think if the interview if there luffy project is still very hanging by the way the project luffy get things right for a thorough vue !!!!

Background 

After installing the node, when executed npm run xxx commands, error, suggest the following:
 / usr / bin / env: the Node: No SUCH File or Directory 

Step 

1 What the hell, perform a npm command how prompt / usr / bin. / env this error it, read the information 

data are prompted to create a soft link, as follows: 

LN -s / usr / bin / nodejs / usr / bin / the Node 

2 speculation.! ! Because when npm execution of default is to use the / usr / bin / node to perform, but my local is not / usr / bin / node, so you need to create a 

need to create a soft link will refer to its own node executable file to / usr / bin / on the node, then modified as follows: 

LN -s / usr / local / NODEJS_HOME / bin / the Node / usr / bin / the Node 

3 . execution again, OK the 
though millions of people, it will carry on! 










2 , extract, create links 

unpack the archive to / opt (general software in this directory) directory. You can see there are two executables under bin directory node and npm, in / usr / local / create a link to the file in the bin

LN the sudo -s / opt / Node-V0. 12.10 -linux-the x86 / bin / Node / usr / local / bin / Node 

the sudo LN -s / opt / Node-V0. 12.10 -linux-the x86 / bin / NPM / usr / local / bin / npm 

then use node -v, npm - v verify the success of 



the node command, linux environment variable to add, modify / etc / Profile, writes 

the PATH = $ the PATH:. / opt / node-v8 6.0 - x64-Linux / bin 

file is read into force the PATH 

Source / etc / Profile 




start the fourth step would be finished tomorrow to get https: // www.cnblogs.com/pyyu/p/10160874.html

 

Guess you like

Origin www.cnblogs.com/zhen1996/p/10962083.html