GithubHelp home page GithubHelp logo

Comments (7)

fengmk2 avatar fengmk2 commented on May 18, 2024

呃,npm不存在?

from cnpm.

fengmk2 avatar fengmk2 commented on May 18, 2024

你的是 /Users/alsotang/.nvm/versions/node/v0.12.0/bin/node ,不是 1.6.3 啊

from cnpm.

fengmk2 avatar fengmk2 commented on May 18, 2024

我是能安装成功的

from cnpm.

fengmk2 avatar fengmk2 commented on May 18, 2024

from cnpm.

alsotang avatar alsotang commented on May 18, 2024

呃。。现在又好了。我重新梳理了一下这个报错信息。

npm ERR! notarget No compatible version found: npm@'>=2.7.0 <2.8.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["2.5.1","2.5.0","2.4.1","2.4.0","2.3.0","2.1.18","2.2.0","2.1.17","2.1.16","2.1.15","2.1.14","2.1.13","2.1.12","2.1.11","2.1.10","2.1.9","2.1.8","2.1.7","2.1.6","2.1.5","2.1.4","2.1.3","2.1.2","2.1.1","2.1.0","2.0.2","2.0.1","2.0.0","1.4.28","2.0.0-beta.3","1.4.27","2.0.0-beta.2","1.4.26","2.0.0-beta.1","1.4.25","2.0.0-beta.0","2.0.0-alpha.7","2.0.0-alpha.6","1.4.24","2.0.0-alpha.6.0","1.4.23","1.4.22","2.0.0-alpha-5","1.5.0-alpha-4","1.5.0-alpha-3","1.4.21","1.5.0-alpha-2","1.4.20","1.5.0-alpha-1","1.5.0-alpha-0","1.4.19","1.4.18","1.4.17","1.2.8000","1.4.16","1.4.15","1.4.14","1.4.13","1.4.12","1.4.11","1.4.10","1.4.9","1.4.8","1.3.21","1.2.23","1.4.7","1.4.0","1.3.12","1.4.6","1.4.4","1.3.24","1.3.23","1.3.20","1.3.17","1.3.14","1.3.11","1.3.7","1.2.30","1.2.28","1.2.27","1.2.25","1.4.5","1.4.3","1.4.2","1.4.1","1.3.26","1.3.25","1.3.22","1.3.18","1.3.16","1.3.15","1.3.13","1.3.10","1.3.9","1.3.8","1.3.6","1.3.5","1.1.71","1.1.70","1.2.19","1.3.1","1.3.0","1.2.31","1.2.24","1.2.22","1.2.21","1.2.20","1.3.4","1.3.2","1.2.32","1.1.25"]

说的是 cnpm 依赖 2.7.x,但是在 registry 上面最多只有 2.5.1 的版本...不知道类似的问题发生过没有。
虽然报错是给的 0.12 的报错,但是我当时确实在 0.12 和 1.6 上面都出现了这个错误。

from cnpm.

fengmk2 avatar fengmk2 commented on May 18, 2024

但是 cnpm 上一直有 2.7.x 的版本的。。。要不然也不会发布 cnpm 的更新。。。

from cnpm.

Diluka avatar Diluka commented on May 18, 2024
diluka@Diluka-Z7:~$ npm install -g cnpm --registry=https://registry.npm.taobao.org
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/npm-f1686743/node_modules/yargs-parser
npm ERR! dest /home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/yargs-parser-c367edbb
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/npm-f1686743/node_modules/yargs-parser' -> '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/yargs-parser-c367edbb'
npm ERR!  [OperationalError: EACCES: permission denied, rename '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/npm-f1686743/node_modules/yargs-parser' -> '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/yargs-parser-c367edbb'] {
npm ERR!   cause: [Error: EACCES: permission denied, rename '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/npm-f1686743/node_modules/yargs-parser' -> '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/yargs-parser-c367edbb'] {
npm ERR!     errno: -13,
npm ERR!     code: 'EACCES',
npm ERR!     syscall: 'rename',
npm ERR!     path: '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/npm-f1686743/node_modules/yargs-parser',
npm ERR!     dest: '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/yargs-parser-c367edbb'
npm ERR!   },
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'rename',
npm ERR!   path: '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/npm-f1686743/node_modules/yargs-parser',
npm ERR!   dest: '/home/diluka/.nvm/versions/node/v12.18.3/lib/node_modules/.staging/yargs-parser-c367edbb',
npm ERR!   parent: 'cnpm'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/diluka/.npm/_logs/2020-09-10T16_21_01_624Z-debug.log

from cnpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.