deprecated [email protected]: Please upgrade to 2.2.19 or higher

Technical Support
  • I'm installing a fresh new forum as documentation in OSX system, but in "npm install" step, has below problem. previous steps all go well.

    deprecated [email protected]: Please upgrade to 2.2.19 or higher
    npm ERR! Darwin 16.4.0
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
    npm ERR! node v6.9.5
    npm ERR! npm v3.10.10
    npm ERR! path /Users/chosean/.npm/source-map/0.5.6
    npm ERR! code EACCES
    npm ERR! errno -13
    npm ERR! syscall mkdir

    npm ERR! Error: EACCES: permission denied, mkdir '/Users/chosean/.npm/source-map/0.5.6'
    npm ERR! at Error (native)
    npm ERR! { Error: EACCES: permission denied, mkdir '/Users/chosean/.npm/source-map/0.5.6'
    npm ERR! at Error (native)
    npm ERR! errno: -13,
    npm ERR! code: 'EACCES',
    npm ERR! syscall: 'mkdir',
    npm ERR! path: '/Users/chosean/.npm/source-map/0.5.6',
    npm ERR! parent: 'postcss' }
    npm ERR!
    npm ERR! Please try running this command again as root/Administrator.

    npm ERR! Please include the following file with any support request:
    npm ERR! /Applications/XAMPP/xamppfiles/htdocs/NodeBB/npm-debug.log

    Tried to solve it but really don't understand it. how to do with it? Thanks very much

  • @soupain that's a deprecation warning. It's completely irrelevant to the actual issue. This is the actual error:

    Error: EACCES: permission denied, mkdir '/Users/chosean/.npm/source-map/0.5.6'
    

    Which means (gasp) that there's some kind of issue with the write permissions in that directory.

    Also, please provide the following:

    • NodeBB version
    • exact commands written to arrive at this issue
    • npm -v
    • node -v
  • @PitaJ
    Thanks for prompt answer.

    install nodebb by:
    git clone -b v1.4.0 https://github.com/NodeBB/NodeBB.git
    success.

    then:
    cd NodeBB
    npm install
    show problem

    npm -v : 3.10.10
    node -v : v6.9.5

    I re-installed mongodb and now the version is:
    MongoDB shell version v3.4.2
    and deleted nodebb folder and re-install but still the same problem.

  • @soupain check the permissions of the directory /Users/chosean/.npm/, make sure it is owned by your user, not by the admin.

  • @PitaJ

    run:
    sudo chmod 777 .npm/source-map/

    then npm install again:
    $ npm install
    npm WARN deprecated [email protected]: Please upgrade to 2.2.19 or higher
    npm WARN deprecated wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
    npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
    [email protected] node_modules/require_optional/node_modules/semver -> node_modules/semver
    [email protected] /Applications/XAMPP/xamppfiles/htdocs/NodeBB

    though still have warning, but installed succeed. Thanks very much! I will go for next steps.


Suggested Topics