Npm install cnpm install has been reporting errors. Nodejs has been uninstalled before.

< H1 > items under clone on github < / H1 >

previous nodejs configuration and installation refer to https://www.cnblogs.com/zhouy. blog post

later, I reported an error when using gulp. I didn"t know why, so I deleted the following file under disk c

.

I really don"t know why, but I have no choice but to install the system.

C:\Users\HDS\AppData\Roaming (npm-cache  npm)

then uninstall nodejs, reinstall it, and then do so at run time.

< H2 > Local node version < / H2 >
node -v
v8.9.4

npm -v
5.8.0

cnpm -v

cnpm@5.2.0 (D:\Apps\NodeJs\node_global\node_modules\cnpm\lib\parse_argv.js)
npm@5.8.0 (D:\Apps\NodeJs\node_global\node_modules\cnpm\node_modules\npm\lib\npm.js)
node@8.9.4 (D:\Apps\NodeJs\node.exe)
npminstall@3.3.0 (D:\Apps\NodeJs\node_global\node_modules\cnpm\node_modules\npminstall\lib\index.js)
prefix=D:\Apps\NodeJs\node_global
win32 x64 6.1.7601
registry=https://registry.npm.taobao.org
git clone https://github.com/deshes/vue-weather.git

cd vue-weather

npm install 

npm run dev
< H2 > error details < / H2 >
Error: EPERM: operation not permitted, rename "C:\Users\HDS\.npminstall_tarball\.tmp\2018\04\04\vue-style-loader-3.1.2-149e09a0-e972-43b5-b007-33b90d82ac39.tgz" -> "C:\Users\HDS\.npminstall_tarball\v\u\e\s\vue-style-loader\3.1.2-6b66ad34998fc9520c2f1e4d5fa4091641c1597a.tgz"

npminstall version: 3.3.0

npminstall args: D:\Apps\NodeJs\node.exe D:\Apps\NodeJs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js --china --userconfig=C:\Users\HDS\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org
< H2 > package.json of this project < / H2 >
{
  "name": "vue-weather",
  "version": "1.0.0",
  "description": "A Vue.js project",
  "author": " <>",
  "private": true,
  "scripts": {
    "dev": "node build/dev-server.js",
    "start": "node build/dev-server.js",
    "build": "node build/build.js"
  },
  "dependencies": {
    "vue": "^2.3.3",
    "vue-router": "^2.3.1"
  },
  "devDependencies": {
    "autoprefixer": "^6.7.2",
    "babel-core": "^6.22.1",
    "babel-loader": "^6.2.10",
    "babel-plugin-transform-runtime": "^6.22.0",
    "babel-preset-env": "^1.3.2",
    "babel-preset-stage-2": "^6.22.0",
    "babel-register": "^6.22.0",
    "chalk": "^1.1.3",
    "connect-history-api-fallback": "^1.3.0",
    "copy-webpack-plugin": "^4.0.1",
    "css-loader": "^0.28.0",
    "eventsource-polyfill": "^0.9.6",
    "express": "^4.14.1",
    "extract-text-webpack-plugin": "^2.0.0",
    "file-loader": "^0.11.1",
    "friendly-errors-webpack-plugin": "^1.1.3",
    "html-webpack-plugin": "^2.28.0",
    "http-proxy-middleware": "^0.17.3",
    "webpack-bundle-analyzer": "^2.2.1",
    "semver": "^5.3.0",
    "shelljs": "^0.7.6",
    "opn": "^4.0.2",
    "optimize-css-assets-webpack-plugin": "^1.3.0",
    "ora": "^1.2.0",
    "rimraf": "^2.6.0",
    "url-loader": "^0.5.8",
    "vue-loader": "^12.1.0",
    "vue-style-loader": "^3.0.1",
    "vue-template-compiler": "^2.3.3",
    "webpack": "^2.6.1",
    "webpack-dev-middleware": "^1.10.0",
    "webpack-hot-middleware": "^2.18.0",
    "webpack-merge": "^4.1.0"
  },
  "engines": {
    "node": ">= 4.0.0",
    "npm": ">= 3.0.0"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ]
}
Mar.01,2021

try
Link description


look at the output of both your node and npm versions. There should be no problem with the installation. Forget the project, create a new folder, and try to install a random package

npm init

npm install webpack -S

C:\ Users\ HDS\ .npminstall _ tarball\ .tmp\ delete this folder and try again


Brother Registry
garbage cleanup

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b349c8-404b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b349c8-404b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?