~/.profile error upon Startup












1















I'm getting this message upon startup, just after I login as a user. I recently installed nodejs, realized I should have researched it more and installed it LOCALLY, and subsequently went through file system and deleted everything node and npm. I've been using Ubuntu for a while, delve into the command line once in a while, but I'm only starting to get familiar with the file system, and I dont know anything about this issue. Here's what it says:



 Error found when loading /home/j/.profile:

/home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid
identifier

As a result the session will not be configured correctly. You should
fix the problem as soon as feasible.


I guess this is because I purposely deleted it? TBH, I am not sure I can track down EVERYTHING I did to bungle all this, but here how the ~/.profile reads:



line 23:



export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: /home/j/.npm/bin


*edit** - Sorry, I should have specified that the PATH variable part is line 23. And when I copied it for this post originally, it was late and i didn't realize it didn't paste the last part, the /home/j/.npm/bin part.



I remember updating the path variable based on something I read, (that is the path variable as I understand?) but since that folder no longer exists (rm'd all npm stuff), I'll need to change it again, and get rid of that last thing directing to /home/j/.npm/bin. I don't want to blind crack-hack anymore based on stuff I read. Plus I'm only just beginning to understand this.



Thanks anyone..? Perhaps directing to any info on the PATH and how to update/correct it?










share|improve this question

























  • ` /home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid identifier` you should look on line 23 to check the error

    – Maythux
    May 21 '15 at 5:34











  • @maythux - thanks, I edited my comment on line 23. It was late and I didn't paste it correctly originally. See above. thx

    – gson78
    May 24 '15 at 6:19
















1















I'm getting this message upon startup, just after I login as a user. I recently installed nodejs, realized I should have researched it more and installed it LOCALLY, and subsequently went through file system and deleted everything node and npm. I've been using Ubuntu for a while, delve into the command line once in a while, but I'm only starting to get familiar with the file system, and I dont know anything about this issue. Here's what it says:



 Error found when loading /home/j/.profile:

/home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid
identifier

As a result the session will not be configured correctly. You should
fix the problem as soon as feasible.


I guess this is because I purposely deleted it? TBH, I am not sure I can track down EVERYTHING I did to bungle all this, but here how the ~/.profile reads:



line 23:



export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: /home/j/.npm/bin


*edit** - Sorry, I should have specified that the PATH variable part is line 23. And when I copied it for this post originally, it was late and i didn't realize it didn't paste the last part, the /home/j/.npm/bin part.



I remember updating the path variable based on something I read, (that is the path variable as I understand?) but since that folder no longer exists (rm'd all npm stuff), I'll need to change it again, and get rid of that last thing directing to /home/j/.npm/bin. I don't want to blind crack-hack anymore based on stuff I read. Plus I'm only just beginning to understand this.



Thanks anyone..? Perhaps directing to any info on the PATH and how to update/correct it?










share|improve this question

























  • ` /home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid identifier` you should look on line 23 to check the error

    – Maythux
    May 21 '15 at 5:34











  • @maythux - thanks, I edited my comment on line 23. It was late and I didn't paste it correctly originally. See above. thx

    – gson78
    May 24 '15 at 6:19














1












1








1








I'm getting this message upon startup, just after I login as a user. I recently installed nodejs, realized I should have researched it more and installed it LOCALLY, and subsequently went through file system and deleted everything node and npm. I've been using Ubuntu for a while, delve into the command line once in a while, but I'm only starting to get familiar with the file system, and I dont know anything about this issue. Here's what it says:



 Error found when loading /home/j/.profile:

/home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid
identifier

As a result the session will not be configured correctly. You should
fix the problem as soon as feasible.


I guess this is because I purposely deleted it? TBH, I am not sure I can track down EVERYTHING I did to bungle all this, but here how the ~/.profile reads:



line 23:



export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: /home/j/.npm/bin


*edit** - Sorry, I should have specified that the PATH variable part is line 23. And when I copied it for this post originally, it was late and i didn't realize it didn't paste the last part, the /home/j/.npm/bin part.



I remember updating the path variable based on something I read, (that is the path variable as I understand?) but since that folder no longer exists (rm'd all npm stuff), I'll need to change it again, and get rid of that last thing directing to /home/j/.npm/bin. I don't want to blind crack-hack anymore based on stuff I read. Plus I'm only just beginning to understand this.



Thanks anyone..? Perhaps directing to any info on the PATH and how to update/correct it?










share|improve this question
















I'm getting this message upon startup, just after I login as a user. I recently installed nodejs, realized I should have researched it more and installed it LOCALLY, and subsequently went through file system and deleted everything node and npm. I've been using Ubuntu for a while, delve into the command line once in a while, but I'm only starting to get familiar with the file system, and I dont know anything about this issue. Here's what it says:



 Error found when loading /home/j/.profile:

/home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid
identifier

As a result the session will not be configured correctly. You should
fix the problem as soon as feasible.


I guess this is because I purposely deleted it? TBH, I am not sure I can track down EVERYTHING I did to bungle all this, but here how the ~/.profile reads:



line 23:



export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games: /home/j/.npm/bin


*edit** - Sorry, I should have specified that the PATH variable part is line 23. And when I copied it for this post originally, it was late and i didn't realize it didn't paste the last part, the /home/j/.npm/bin part.



I remember updating the path variable based on something I read, (that is the path variable as I understand?) but since that folder no longer exists (rm'd all npm stuff), I'll need to change it again, and get rid of that last thing directing to /home/j/.npm/bin. I don't want to blind crack-hack anymore based on stuff I read. Plus I'm only just beginning to understand this.



Thanks anyone..? Perhaps directing to any info on the PATH and how to update/correct it?







.profile






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 24 '15 at 6:21









muru

1




1










asked May 21 '15 at 2:36









gson78gson78

613




613













  • ` /home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid identifier` you should look on line 23 to check the error

    – Maythux
    May 21 '15 at 5:34











  • @maythux - thanks, I edited my comment on line 23. It was late and I didn't paste it correctly originally. See above. thx

    – gson78
    May 24 '15 at 6:19



















  • ` /home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid identifier` you should look on line 23 to check the error

    – Maythux
    May 21 '15 at 5:34











  • @maythux - thanks, I edited my comment on line 23. It was late and I didn't paste it correctly originally. See above. thx

    – gson78
    May 24 '15 at 6:19

















` /home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid identifier` you should look on line 23 to check the error

– Maythux
May 21 '15 at 5:34





` /home/j/.profile: line 23: export: '/home/j/.npm/bin': not a valid identifier` you should look on line 23 to check the error

– Maythux
May 21 '15 at 5:34













@maythux - thanks, I edited my comment on line 23. It was late and I didn't paste it correctly originally. See above. thx

– gson78
May 24 '15 at 6:19





@maythux - thanks, I edited my comment on line 23. It was late and I didn't paste it correctly originally. See above. thx

– gson78
May 24 '15 at 6:19










1 Answer
1






active

oldest

votes


















1














There's a stray space in this line:



export PATH=/usr.../games: /home/j/.npm/bin


See that space after the :? Remove it.



It would be better if you used instead:



export PATH="/home/j/.npm/bin:$PATH"


Your original line completely re-writes the PATH, ignoring modifications that may have been made elsewhere.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f626337%2fprofile-error-upon-startup%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    There's a stray space in this line:



    export PATH=/usr.../games: /home/j/.npm/bin


    See that space after the :? Remove it.



    It would be better if you used instead:



    export PATH="/home/j/.npm/bin:$PATH"


    Your original line completely re-writes the PATH, ignoring modifications that may have been made elsewhere.






    share|improve this answer




























      1














      There's a stray space in this line:



      export PATH=/usr.../games: /home/j/.npm/bin


      See that space after the :? Remove it.



      It would be better if you used instead:



      export PATH="/home/j/.npm/bin:$PATH"


      Your original line completely re-writes the PATH, ignoring modifications that may have been made elsewhere.






      share|improve this answer


























        1












        1








        1







        There's a stray space in this line:



        export PATH=/usr.../games: /home/j/.npm/bin


        See that space after the :? Remove it.



        It would be better if you used instead:



        export PATH="/home/j/.npm/bin:$PATH"


        Your original line completely re-writes the PATH, ignoring modifications that may have been made elsewhere.






        share|improve this answer













        There's a stray space in this line:



        export PATH=/usr.../games: /home/j/.npm/bin


        See that space after the :? Remove it.



        It would be better if you used instead:



        export PATH="/home/j/.npm/bin:$PATH"


        Your original line completely re-writes the PATH, ignoring modifications that may have been made elsewhere.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 24 '15 at 6:19









        murumuru

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f626337%2fprofile-error-upon-startup%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?