Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module installation with npm throws permissions error (windows) #726

Closed
underzero opened this issue Jul 17, 2015 · 3 comments
Closed

module installation with npm throws permissions error (windows) #726

underzero opened this issue Jul 17, 2015 · 3 comments
Assignees

Comments

@underzero
Copy link

npm install --save gcloud throws permission errors.
A week ago it was working perfectly

I have already moved the npm cache to a new directory with full access

this is the log

33 silly cache add args [ 'gcloud@git://github.com/GoogleCloudPlatform/gcloud-node.git',
33 silly cache add   null ]
34 verbose cache add spec gcloud@git://github.com/GoogleCloudPlatform/gcloud-node.git
35 silly cache add parsed spec { raw: 'gcloud@git://github.com/GoogleCloudPlatform/gcloud-node.git',
35 silly cache add   scope: null,
35 silly cache add   name: 'gcloud',
35 silly cache add   rawSpec: 'git://github.com/GoogleCloudPlatform/gcloud-node.git',
35 silly cache add   spec: 'git://github.com/GoogleCloudPlatform/gcloud-node.git',
35 silly cache add   type: 'hosted',
35 silly cache add   hosted:
35 silly cache add    { type: 'github',
35 silly cache add      ssh: 'git@github.com:GoogleCloudPlatform/gcloud-node.git',
35 silly cache add      sshUrl: 'git+ssh://git@github.com/GoogleCloudPlatform/gcloud-node.git',
35 silly cache add      httpsUrl: 'git+https://github.com/GoogleCloudPlatform/gcloud-node.git',
35 silly cache add      gitUrl: 'git://github.com/GoogleCloudPlatform/gcloud-node.git',
35 silly cache add      shortcut: 'github:GoogleCloudPlatform/gcloud-node',
35 silly cache add      directUrl: 'https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-node/master/package.json' } }
36 verbose addRemoteGit caching git://github.com/GoogleCloudPlatform/gcloud-node.git
37 verbose addRemoteGit git://github.com/GoogleCloudPlatform/gcloud-node.git is a repository hosted by github
38 silly tryClone cloning git://github.com/GoogleCloudPlatform/gcloud-node.git via git://github.com/GoogleCloudPlatform/gcloud-node.git
39 verbose tryClone git-github-com-GoogleCloudPlatform-gcloud-node-git-5ea74271 not in flight; caching
40 info git [ 'config', '--get', 'remote.origin.url' ]
41 silly validateExistingRemote git://github.com/GoogleCloudPlatform/gcloud-node.git remote.origin.url: git://github.com/GoogleCloudPlatform/gcloud-node.git
42 verbose validateExistingRemote git://github.com/GoogleCloudPlatform/gcloud-node.git is updating existing cached remote c:\node\npm-cache\_git-remotes\git-github-com-GoogleCloudPlatform-gcloud-node-git-5ea74271
43 info git [ 'fetch', '-a', 'origin' ]
44 verbose updateRemote git fetch -a origin (git://github.com/GoogleCloudPlatform/gcloud-node.git)
45 verbose setPermissions git://github.com/GoogleCloudPlatform/gcloud-node.git skipping chownr on Windows
46 verbose resolveHead git://github.com/GoogleCloudPlatform/gcloud-node.git original treeish: master
47 info git [ 'rev-list', '-n1', 'master' ]
48 silly resolveHead git://github.com/GoogleCloudPlatform/gcloud-node.git resolved treeish: f72a3073f2fce57f5f026b140ac522e9436006a7
49 verbose resolveHead git://github.com/GoogleCloudPlatform/gcloud-node.git resolved Git URL: git://github.com/GoogleCloudPlatform/gcloud-node.git#f72a3073f2fce57f5f026b140ac522e9436006a7
50 silly resolveHead Git working directory: C:\Users\UNDERZ~1\AppData\Local\Temp\npm-6900-43e8d18a\git-cache-ee74863a900f\f72a3073f2fce57f5f026b140ac522e9436006a7
51 info git [ 'clone',
51 info git   'c:\\node\\npm-cache\\_git-remotes\\git-github-com-GoogleCloudPlatform-gcloud-node-git-5ea74271',
51 info git   'C:\\Users\\UNDERZ~1\\AppData\\Local\\Temp\\npm-6900-43e8d18a\\git-cache-ee74863a900f\\f72a3073f2fce57f5f026b140ac522e9436006a7' ]
52 verbose cloneResolved git://github.com/GoogleCloudPlatform/gcloud-node.git clone Cloning into 'C:\Users\UNDERZ~1\AppData\Local\Temp\npm-6900-43e8d18a\git-cache-ee74863a900f\f72a3073f2fce57f5f026b140ac522e9436006a7'...
52 verbose cloneResolved done.
53 info git [ 'checkout', 'f72a3073f2fce57f5f026b140ac522e9436006a7' ]
54 verbose checkoutTreeish git://github.com/GoogleCloudPlatform/gcloud-node.git checkout Note: checking out 'f72a3073f2fce57f5f026b140ac522e9436006a7'.
54 verbose checkoutTreeish
54 verbose checkoutTreeish You are in 'detached HEAD' state. You can look around, make experimental
54 verbose checkoutTreeish changes and commit them, and you can discard any commits you make in this
54 verbose checkoutTreeish state without impacting any branches by performing another checkout.
54 verbose checkoutTreeish
54 verbose checkoutTreeish If you want to create a new branch to retain commits you create, you may
54 verbose checkoutTreeish do so (now or later) by using -b with the checkout command again. Example:
54 verbose checkoutTreeish
54 verbose checkoutTreeish   git checkout -b new_branch_name
54 verbose checkoutTreeish
54 verbose checkoutTreeish HEAD is now at f72a307... Merge pull request #705 from stephenplusplus/spp--storage-universal-handler
55 verbose addLocalDirectory c:\node\npm-cache\gcloud\0.16.0\package.tgz not in flight; packing
56 verbose tar pack [ 'c:\\node\\npm-cache\\gcloud\\0.16.0\\package.tgz',
56 verbose tar pack   'C:\\Users\\UNDERZ~1\\AppData\\Local\\Temp\\npm-6900-43e8d18a\\git-cache-ee74863a900f\\f72a3073f2fce57f5f026b140ac522e9436006a7' ]
57 verbose tarball c:\node\npm-cache\gcloud\0.16.0\package.tgz
58 verbose folder C:\Users\UNDERZ~1\AppData\Local\Temp\npm-6900-43e8d18a\git-cache-ee74863a900f\f72a3073f2fce57f5f026b140ac522e9436006a7
59 verbose addLocalTarball adding from inside cache c:\node\npm-cache\gcloud\0.16.0\package.tgz
60 verbose addRemoteGit data._from: git://github.com/GoogleCloudPlatform/gcloud-node.git
61 verbose addRemoteGit data._resolved: git://github.com/GoogleCloudPlatform/gcloud-node.git#f72a3073f2fce57f5f026b140ac522e9436006a7
62 silly cache afterAdd gcloud@0.16.0
63 verbose afterAdd c:\node\npm-cache\gcloud\0.16.0\package\package.json not in flight; writing
64 verbose afterAdd c:\node\npm-cache\gcloud\0.16.0\package\package.json written
65 silly install resolved [ { name: 'gcloud',
65 silly install resolved     version: '0.16.0',
65 silly install resolved     author: { name: 'Google Inc.' },
65 silly install resolved     description: 'Google Cloud APIs Client Library for Node.js',
65 silly install resolved     contributors: [ [Object], [Object], [Object], [Object], [Object], [Object] ],
65 silly install resolved     main: './lib/index',
65 silly install resolved     files: [ 'lib/', 'AUTHORS', 'CONTRIBUTORS', 'COPYING' ],
65 silly install resolved     repository:
65 silly install resolved      { type: 'git',
65 silly install resolved        url: 'git+https://github.com/googlecloudplatform/gcloud-node.git' },
65 silly install resolved     keywords:
65 silly install resolved      [ 'google',
65 silly install resolved        'api',
65 silly install resolved        'google apis',
65 silly install resolved        'client',
65 silly install resolved        'cloud',
65 silly install resolved        'datastore',
65 silly install resolved        'compute engine',
65 silly install resolved        'google storage' ],
65 silly install resolved     dependencies:
65 silly install resolved      { async: '^0.9.0',
65 silly install resolved        'buffer-equal': '0.0.1',
65 silly install resolved        'concat-stream': '^1.5.0',
65 silly install resolved        configstore: '^0.3.2',
65 silly install resolved        duplexify: '^3.2.0',
65 silly install resolved        extend: '^2.0.0',
65 silly install resolved        'google-auth-library': '^0.9.4',
65 silly install resolved        'mime-types': '^2.0.8',
65 silly install resolved        'node-uuid': '^1.4.2',
65 silly install resolved        once: '^1.3.1',
65 silly install resolved        protobufjs: '^3.8.2',
65 silly install resolved        request: '^2.53.0',
65 silly install resolved        'retry-request': '^1.1.0',
65 silly install resolved        sse4_crc32: '^3.1.0',
65 silly install resolved        'stream-events': '^1.0.1',
65 silly install resolved        'stream-forward': '^2.0.0',
65 silly install resolved        through2: '^0.6.3' },
65 silly install resolved     devDependencies:
65 silly install resolved      { bytebuffer: '^3.5.4',
65 silly install resolved        coveralls: '^2.11.2',
65 silly install resolved        dox: '^0.7.0',
65 silly install resolved        glob: '^5.0.9',
65 silly install resolved        istanbul: '^0.3.5',
65 silly install resolved        jshint: '^2.6.0',
65 silly install resolved        mitm: '^1.1.0',
65 silly install resolved        mocha: '^2.1.0',
65 silly install resolved        mockery: '^1.4.0',
65 silly install resolved        tmp: '0.0.24' },
65 silly install resolved     scripts:
65 silly install resolved      { docs: './scripts/docs.sh',
65 silly install resolved        lint: 'jshint lib/ system-test/ test/',
65 silly install resolved        test: 'npm run docs && mocha test/*/*.js test/docs.js',
65 silly install resolved        'system-test': 'mocha system-test/* --timeout 30000',
65 silly install resolved        cover: 'istanbul cover -x \'system-test/*\' _mocha -- --timeout 30000 test/*/*.js test/docs.js system-test/*',
65 silly install resolved        coveralls: 'istanbul cover -x \'system-test/*\' _mocha --report lcovonly -- --timeout 30000 test/*/*.js test/docs.js system-test/* -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage' },
65 silly install resolved     license: 'Apache-2.0',
65 silly install resolved     gitHead: 'f72a3073f2fce57f5f026b140ac522e9436006a7',
65 silly install resolved     readme: '# Google Cloud Node.js Client\r\n> Node.js idiomatic client for [Google Cloud Platform](https://cloud.google.com/) services.\r\n\r\n[![NPM Version](https://img.shields.io/npm/v/gcloud.svg)](https://www.npmjs.org/package/gcloud)\r\n[![Travis Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-node.svg)](https://travis-ci.org/GoogleCloudPlatform/gcloud-node/)\r\n[![Coverage Status](https://img.shields.io/coveralls/GoogleCloudPlatform/gcloud-node.svg)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-node?branch=master)\r\n\r\n* [Homepage][gcloud-homepage]\r\n* [API Documentation][gcloud-docs]\r\n\r\nThis client supports the following Google Cloud Platform services:\r\n\r\n* [Google BigQuery](#google-bigquery)\r\n* [Google Cloud Datastore](#google-cloud-datastore)\r\n* [Google Cloud Storage](#google-cloud-storage)\r\n* [Google Cloud Pub/Sub](#google-cloud-pubsub-beta) (Beta)\r\n* [Google Cloud Search](#google-cloud-search-alpha) (Alpha)\r\n\r\nIf you need support for other Google APIs, check out the [Google Node.js API Client library][googleapis].\r\n\r\n## Quick Start\r\n\r\n```sh\r\n$ npm install --save gcloud\r\n```\r\n\r\n## Example Applications\r\n\r\n- [gcloud-node-todos][gcloud-todos] - A TodoMVC backend using gcloud-node and Datastore.\r\n- [gitnpm][gitnpm] - Easily lookup an npm package\'s GitHub repo using gcloud-node and Google App Engine.\r\n- [gcloud-kvstore][gcloud-kvstore] - Use Datastore as a simple key-value store.\r\n- [hya-wave][hya-wave] - Cloud-based web sample editor. Part of the [hya-io][hya-io] family of products.\r\n\r\n## Authorization\r\n\r\nWith `gcloud-node` it\'s incredibly easy to get authorized and start using Google\'s APIs. You can set your credentials on a global basis as well as on a per-API basis. See each individual API section below to see how you can auth on a per-API-basis. This is useful if you want to use different accounts for different Google Cloud services.\r\n\r\n### On Google Compute Engine\r\n\r\nIf you are running this client on Google Compute Engine, we handle authorization for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access.\r\n\r\n``` js\r\n// Authorizing on a global basis.\r\nvar projectId = process.env.GCLOUD_PROJECT_ID; // E.g. \'grape-spaceship-123\'\r\nvar gcloud = require(\'gcloud\')({\r\n  projectId: projectId\r\n});\r\n\r\n// ...you\'re good to go! See the next section to get started using the APIs.\r\n```\r\n\r\n### Elsewhere\r\n\r\nIf you are not running this client on Google Compute Engine, you need a Google Developers service account. To create a service account:\r\n\r\n1. Visit the [Google Developers Console][dev-console].\r\n2. Create a new project or click on an existing project.\r\n3. Navigate to  **APIs & auth** > **APIs section** and turn on the following APIs (you may need to enable billing in order to use these services):\r\n  * Google Cloud Datastore API\r\n  * Google Cloud Storage\r\n  * Google Cloud Storage JSON API\r\n4. Navigate to **APIs & auth** >  **Credentials** and then:\r\n  * If you want to use a new service account, click on **Create new Client ID** and select **Service account**. After the account is created, you will be prompted to download the JSON key file that the library uses to authorize your requests.\r\n  * If you want to generate a new key for an existing service account, click on **Generate new JSON key** and download the JSON key file.\r\n\r\n``` js\r\n// Authorizing on a global basis.\r\nvar projectId = process.env.GCLOUD_PROJECT_ID; // E.g. \'grape-spaceship-123\'\r\n\r\nvar gcloud = require(\'gcloud\')({\r\n  projectId: projectId,\r\n  keyFilename: \'/path/to/keyfile.json\'\r\n});\r\n\r\n// ...you\'re good to go! See the next section to get started using the APIs.\r\n```\r\n\r\nYou can also set auth on a per-API-instance basis. The examples below show you how.\r\n\r\n\r\n## Google BigQuery\r\n\r\n- [API Documentation][gcloud-bigquery-docs]\r\n- [Official Documentation][cloud-bigquery-docs]\r\n\r\n#### Preview\r\n\r\n```js\r\nvar gcloud = require(\'gcloud\');\r\n\r\n// Authorizing on a per-API-basis. You don\'t need to do this if you auth on a\r\n// global basis (see Authorization section above).\r\nvar bigquery = gcloud.bigquery({\r\n  projectId: \'my-project\',\r\n  keyFilename: \'/path/to/keyfile.json\'\r\n});\r\n\r\n// Access an existing dataset.\r\nvar schoolsDataset = bigquery.dataset(\'schools\');\r\n\r\n// Import data into a dataset.\r\nschoolsDataset.import(\'/local/file.json\', function(err, job) {});\r\n\r\n// Get results from a query job.\r\nvar job = bigquery.job(\'job-id\');\r\n\r\n// Use a callback.\r\njob.getQueryResults(function(err, rows) {});\r\n\r\n// Or get the same results as a readable stream.\r\njob.getQueryResults().on(\'data\', function(row) {});\r\n```\r\n\r\n\r\n## Google Cloud Datastore\r\n\r\n- [API Documentation][gcloud-datastore-docs]\r\n- [Official Documentation][cloud-datastore-docs]\r\n\r\n*Follow the [activation instructions][cloud-datastore-activation] to use the Google Cloud Datastore API with your project.*\r\n\r\n#### Preview\r\n\r\n```js\r\nvar gcloud = require(\'gcloud\');\r\n\r\n// Authorizing on a per-API-basis. You don\'t need to do this if you auth on a\r\n// global basis (see Authorization section above).\r\n\r\nvar dataset = gcloud.datastore.dataset({\r\n  projectId: \'my-project\',\r\n  keyFilename: \'/path/to/keyfile.json\'\r\n});\r\n\r\ndataset.get(dataset.key([\'Product\', \'Computer\']), function(err, entity) {\r\n  console.log(err || entity);\r\n});\r\n\r\n// Save data to your dataset.\r\nvar blogPostData = {\r\n  title: \'How to make the perfect homemade pasta\',\r\n  author: \'Andrew Chilton\',\r\n  isDraft: true\r\n};\r\n\r\nvar blogPostKey = dataset.key(\'BlogPost\');\r\n\r\ndataset.save({\r\n  key: blogPostKey,\r\n  data: blogPostData\r\n}, function(err) {\r\n  // `blogPostKey` has been updated with an ID so you can do more operations\r\n  // with it, such as an update:\r\n  dataset.save({\r\n    key: blogPostKey,\r\n    data: {\r\n      isDraft: false\r\n    }\r\n  }, function(err) {\r\n    if (!err) {\r\n      // The blog post is now published!\r\n    }\r\n  });\r\n});\r\n```\r\n\r\n\r\n## Google Cloud Storage\r\n\r\n- [API Documentation][gcloud-storage-docs]\r\n- [Official Documentation][cloud-storage-docs]\r\n\r\n#### Preview\r\n\r\n```js\r\nvar fs = require(\'fs\');\r\nvar gcloud = require(\'gcloud\');\r\n\r\n// Authorizing on a per-API-basis. You don\'t need to do this if you auth on a\r\n// global basis (see Authorization section above).\r\n\r\nvar gcs = gcloud.storage({\r\n  keyFilename: \'/path/to/keyfile.json\',\r\n  projectId: \'my-project\'\r\n});\r\n\r\n// Create a new bucket.\r\ngcs.createBucket(\'my-new-bucket\', function(err, bucket) {\r\n  if (!err) {\r\n    // "my-new-bucket" was successfully created.\r\n  }\r\n});\r\n\r\n// Reference an existing bucket.\r\nvar bucket = gcs.bucket(\'my-existing-bucket\');\r\n\r\n// Upload a local file to a new file to be created in your bucket.\r\nvar fileStream = fs.createReadStream(\'/local/file.txt\');\r\nfileStream.pipe(bucket.file(\'file.txt\').createWriteStream());\r\n\r\n// Download a remote file to a new local file.\r\nvar fileStream = bucket.file(\'photo.jpg\').createReadStream();\r\nfileStream.pipe(fs.createWriteStream(\'/local/photo.jpg\'));\r\n```\r\n\r\n\r\n## Google Cloud Pub/Sub (Beta)\r\n\r\n> This is a *Beta* release of Google Cloud Pub/Sub. This feature is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.\r\n\r\n- [API Documentation][gcloud-pubsub-docs]\r\n- [Official Documentation][cloud-pubsub-docs]\r\n\r\n#### Preview\r\n\r\n```js\r\nvar gcloud = require(\'gcloud\');\r\n\r\n// Authorizing on a per-API-basis. You don\'t need to do this if you\r\n// auth on a global basis (see Authorization section above).\r\n\r\nvar pubsub = gcloud.pubsub({\r\n  projectId: \'my-project\',\r\n  keyFilename: \'/path/to/keyfile.json\'\r\n});\r\n\r\n// Reference a topic.\r\nvar topic = pubsub.topic(\'my-topic\');\r\n\r\n// Publish a message to the topic.\r\n// The topic will be created if it doesn\'t exist.\r\ntopic.publish({\r\n  data: \'New message!\'\r\n}, function(err) {});\r\n\r\n// Subscribe to the topic.\r\ntopic.subscribe(\'new-subscription\', function(err, subscription) {\r\n  // Register listeners to start pulling for messages.\r\n  function onError(err) {}\r\n  function onMessage(message) {}\r\n  subscription.on(\'error\', onError);\r\n  subscription.on(\'message\', onMessage);\r\n\r\n  // Remove listeners to stop pulling for messages.\r\n  subscription.removeListener(\'message\', onMessage);\r\n  subscription.removeListener(\'error\', onError);\r\n});\r\n```\r\n\r\n\r\n## Google Cloud Search (Alpha)\r\n\r\n> This is an *Alpha* release of Google Cloud Search. This feature is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.\r\n\r\n- [API Documentation][gcloud-search-docs]\r\n- [Official Documentation][cloud-search-docs]\r\n\r\n#### Preview\r\n\r\n```js\r\nvar gcloud = require(\'gcloud\');\r\n\r\n// Authorizing on a per-API-basis. You don\'t need to do this if you auth on a\r\n// global basis (see Authorization section above).\r\n\r\nvar search = gcloud.search({\r\n  keyFilename: \'/path/to/keyfile.json\',\r\n  projectId: \'my-project\'\r\n});\r\n\r\n// Create a document in a new index.\r\nvar index = search.index(\'memberData\');\r\n\r\nvar document = index.document(\'member-id-34211\');\r\ndocument.addField(\'preferredContactForm\').addTextValue(\'phone\');\r\n\r\nindex.createDocument(document, function(err, document) {\r\n  console.log(err || document);\r\n});\r\n\r\n// Search an index and get the results as a readable object stream.\r\nvar index = search.index(\'memberData\');\r\n\r\nindex.search(\'preferredContactForm:phone\')\r\n  .on(\'error\', console.error)\r\n  .on(\'data\', function(document) {\r\n    // document.id = \'member-id-34211\';\r\n  })\r\n  .on(\'end\', function() {\r\n    // All results consumed.\r\n  });\r\n```\r\n\r\n\r\n## Contributing\r\n\r\nContributions to this library are always welcome and highly encouraged.\r\n\r\nSee [CONTRIBUTING](CONTRIBUTING.md) for more information on how to get started.\r\n\r\n## License\r\n\r\nApache 2.0 - See [COPYING](COPYING) for more information.\r\n\r\n[gcloud-homepage]: https://googlecloudplatform.github.io/gcloud-node/\r\n[gcloud-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs\r\n[gcloud-bigquery-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/bigquery\r\n[gcloud-datastore-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/datastore\r\n[gcloud-pubsub-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/pubsub\r\n[gcloud-search-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/search\r\n[gcloud-storage-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/storage\r\n\r\n[gcloud-todos]: https://github.com/GoogleCloudPlatform/gcloud-node-todos\r\n[gitnpm]: https://github.com/stephenplusplus/gitnpm\r\n[gcloud-kvstore]: https://github.com/stephenplusplus/gcloud-kvstore\r\n[hya-wave]: https://wav.hya.io\r\n[hya-io]: https://hya.io\r\n\r\n[dev-console]: https://console.developers.google.com/project\r\n[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using\r\n\r\n[googleapis]: https://github.com/google/google-api-nodejs-client\r\n\r\n[cloud-bigquery-docs]: https://cloud.google.com/bigquery/what-is-bigquery\r\n\r\n[cloud-datastore-docs]: https://cloud.google.com/datastore/docs\r\n[cloud-datastore-activation]: https://cloud.google.com/datastore/docs/activate\r\n\r\n[cloud-pubsub-docs]: https://cloud.google.com/pubsub/docs\r\n\r\n[cloud-search-docs]: https://cloud.google.com/search/\r\n\r\n[cloud-storage-docs]: https://cloud.google.com/storage/docs/overview\r\n',
65 silly install resolved     readmeFilename: 'README.md',
65 silly install resolved     bugs: { url: 'https://github.com/googlecloudplatform/gcloud-node/issues' },
65 silly install resolved     homepage: 'https://github.com/googlecloudplatform/gcloud-node#readme',
65 silly install resolved     _id: 'gcloud@0.16.0',
65 silly install resolved     _shasum: '0caae4f49c518ad65f6fe62ceaa679502d700149',
65 silly install resolved     _from: 'git://github.com/GoogleCloudPlatform/gcloud-node.git',
65 silly install resolved     _resolved: 'git://github.com/GoogleCloudPlatform/gcloud-node.git#f72a3073f2fce57f5f026b140ac522e9436006a7' } ]
66 info install gcloud@0.16.0 into C:\node\backend
67 info installOne gcloud@0.16.0
68 verbose installOne of gcloud to C:\node\backend not in flight; installing
69 verbose lock using c:\node\npm-cache\_locks\gcloud-4752bdba63fd5c82.lock for C:\node\backend\node_modules\gcloud
70 silly install write writing gcloud 0.16.0 to C:\node\backend\node_modules\gcloud
71 verbose unbuild node_modules\gcloud
72 silly gentlyRm C:\node\backend\node_modules\gcloud is being purged from base C:\node\backend
73 verbose gentlyRm don't care about contents; nuking C:\node\backend\node_modules\gcloud
74 silly vacuum-fs purging C:\node\backend\node_modules\gcloud
75 verbose unlock done using c:\node\npm-cache\_locks\gcloud-4752bdba63fd5c82.lock for C:\node\backend\node_modules\gcloud
76 verbose stack Error: EPERM, unlink 'C:\node\backend\node_modules\gcloud\node_modules\sse4_crc32\build\Release\sse4_crc32.node'
76 verbose stack     at Error (native)
77 verbose cwd C:\node\backend
78 error Windows_NT 6.1.7601
79 error argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "gcloud"
80 error node v0.12.7
81 error npm  v2.13.1
82 error path C:\node\backend\node_modules\gcloud\node_modules\sse4_crc32\build\Release\sse4_crc32.node
83 error code EPERM
84 error errno -4048
85 error Error: EPERM, unlink 'C:\node\backend\node_modules\gcloud\node_modules\sse4_crc32\build\Release\sse4_crc32.node'
85 error     at Error (native)
85 error  { [Error: EPERM, unlink 'C:\node\backend\node_modules\gcloud\node_modules\sse4_crc32\build\Release\sse4_crc32.node']
85 error   errno: -4048,
85 error   code: 'EPERM',
85 error   path: 'C:\\node\\backend\\node_modules\\gcloud\\node_modules\\sse4_crc32\\build\\Release\\sse4_crc32.node' }
86 error Please try running this command again as root/Administrator.
87 verbose exit [ -4048, true ]
88 verbose unbuild node_modules\gcloud
89 silly gentlyRm C:\node\backend\node_modules\gcloud is being purged from base C:\node\backend
90 verbose gentlyRm don't care about contents; nuking C:\node\backend\node_modules\gcloud
91 silly vacuum-fs purging C:\node\backend\node_modules\gcloud
92 error error rolling back Error: EPERM, unlink 'C:\node\backend\node_modules\gcloud\node_modules\sse4_crc32\build\Release\sse4_crc32.node'
92 error error rolling back     at Error (native)
92 error error rolling back  { [Error: EPERM, unlink 'C:\node\backend\node_modules\gcloud\node_modules\sse4_crc32\build\Release\sse4_crc32.node']
92 error error rolling back   errno: -4048,
92 error error rolling back   code: 'EPERM',
92 error error rolling back   path: 'C:\\node\\backend\\node_modules\\gcloud\\node_modules\\sse4_crc32\\build\\Release\\sse4_crc32.node' }
@callmehiphop
Copy link
Contributor

Hey, I attempted to reproduce this locally but it installed successfully for me.

errno: -4048

I think this occurs when windows locks up a file, have you tried restarting your machine?

You also mentioned that it installed fine a week ago, did you update node/npm or your npm-cache directory since the last successful update? Have you tried rolling back your version of node? I've read about some funkiness involving node v0.12.x and Windows.

@underzero
Copy link
Author

Yes I have updated node and npm to the latest version but before that i was again in the 0.12.x.
I will try rolling back though and see what happens

Update: Rolling back to node 0.12.6 solves the issue.

@callmehiphop
Copy link
Contributor

awesome!

sofisl pushed a commit that referenced this issue Nov 17, 2022
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^13.0.0` -> `^14.0.0`](https://renovatebot.com/diffs/npm/sinon/13.0.2/14.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/compatibility-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/confidence-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>sinonjs/sinon</summary>

### [`v14.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#&#8203;1400)

[Compare Source](https://togithub.com/sinonjs/sinon/compare/v13.0.2...v14.0.0)

-   [`c2bbd826`](https://togithub.com/sinonjs/sinon/commit/c2bbd82641444eb5b32822489ae40f185afbbf00)
    Drop node 12 (Morgan Roderick)
    > And embrace Node 18
    >
    > See https://nodejs.org/en/about/releases/

*Released by Morgan Roderick on 2022-05-07.*

</details>

---

### Configuration

📅 **Schedule**: "after 9am and before 3pm" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-compute).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants