Unable to require "process" - travis-ci

Within my tests I'm attempting to use node.process. Everything works locally, but on travis-ci it is unable to find process. I haven't been able to find anything regarding this error or a solution for that matter.
Here's the error:
Using worker: worker-linux-docker-6b895d82.prod.travis-ci.org:travis-linux-5
system_info
Build system information
Build language: node_js
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
LLVM version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"
git.checkout
0.10s$ git clone --depth=50 --branch=master git://github.com/hhsnopek/pourover.git hhsnopek/pourover
Cloning into 'hhsnopek/pourover'...
remote: Counting objects: 288, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 288 (delta 12), reused 0 (delta 0), pack-reused 254
Receiving objects: 100% (288/288), 478.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (147/147), done.
Checking connectivity... done.
$ cd hhsnopek/pourover
$ git checkout -qf c0c7d70cadcba962828c277806017ef4c344aa24
This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See http://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.
1.04s$ nvm install node
######################################################################## 100.0%
Now using node v0.12.4
$ node --version
v0.12.4
$ npm --version
2.10.1
$ nvm --version
0.23.3
install
12.24s$ npm install
npm WARN package.json pourover#1.1.0 No license field.
gulp-rename#1.2.2 node_modules/gulp-rename
underscore#1.8.3 node_modules/underscore
chai#2.3.0 node_modules/chai
├── assertion-error#1.0.0
└── deep-eql#0.1.3 (type-detect#0.1.1)
del#0.1.3 node_modules/del
├── is-path-cwd#1.0.0
├── each-async#1.1.1 (set-immediate-shim#1.0.1, onetime#1.0.0)
├── is-path-in-cwd#1.0.0 (is-path-inside#1.0.0)
├── globby#0.1.1 (array-differ#0.1.0, array-union#0.1.0, async#0.9.2, glob#4.5.3)
└── rimraf#2.3.4 (glob#4.5.3)
mocha#2.2.5 node_modules/mocha
├── escape-string-regexp#1.0.2
├── supports-color#1.2.1
├── growl#1.8.1
├── commander#2.3.0
├── diff#1.4.0
├── debug#2.0.0 (ms#0.6.2)
├── mkdirp#0.5.0 (minimist#0.0.8)
├── glob#3.2.3 (inherits#2.0.1, graceful-fs#2.0.3, minimatch#0.2.14)
└── jade#0.26.3 (commander#0.6.1, mkdirp#0.3.0)
gulp-wrap-umd#0.2.1 node_modules/gulp-wrap-umd
├── through2#0.5.1 (xtend#3.0.0, readable-stream#1.0.33)
├── gulp-util#2.2.20 (lodash._reinterpolate#2.4.1, minimist#0.2.0, chalk#0.5.1, vinyl#0.2.3, lodash.template#2.4.1, multipipe#0.1.2, dateformat#1.0.11)
└── lodash#2.4.2
gulp#3.8.11 node_modules/gulp
├── pretty-hrtime#0.2.2
├── interpret#0.3.10
├── deprecated#0.0.1
├── archy#1.0.0
├── minimist#1.1.1
├── tildify#1.0.0 (user-home#1.1.1)
├── v8flags#2.0.5 (user-home#1.1.1)
├── chalk#0.5.1 (ansi-styles#1.1.0, escape-string-regexp#1.0.3, supports-color#0.2.0, has-ansi#0.1.0, strip-ansi#0.3.0)
├── semver#4.3.4
├── orchestrator#0.3.7 (sequencify#0.0.7, stream-consume#0.1.0, end-of-stream#0.1.5)
├── liftoff#2.1.0 (extend#2.0.1, rechoir#0.6.1, flagged-respawn#0.3.1, resolve#1.1.6, findup-sync#0.2.1)
├── gulp-util#3.0.4 (array-differ#1.0.0, beeper#1.0.0, object-assign#2.0.0, array-uniq#1.0.2, lodash._reinterpolate#3.0.0, lodash._reescape#3.0.0, lodash._reevaluate#3.0.0, replace-ext#0.0.1, vinyl#0.4.6, chalk#1.0.0, lodash.template#3.6.0, through2#0.6.5, multipipe#0.1.2, dateformat#1.0.11)
└── vinyl-fs#0.3.13 (graceful-fs#3.0.7, strip-bom#1.0.0, defaults#1.0.2, vinyl#0.4.6, mkdirp#0.5.1, through2#0.6.5, glob-stream#3.1.18, glob-watcher#0.0.6)
gulp-uglify#1.2.0 node_modules/gulp-uglify
├── deap#1.0.0
├── through2#0.6.5 (xtend#4.0.0, readable-stream#1.0.33)
├── vinyl-sourcemaps-apply#0.1.4 (source-map#0.1.43)
├── gulp-util#3.0.4 (array-differ#1.0.0, object-assign#2.0.0, beeper#1.0.0, array-uniq#1.0.2, lodash._reevaluate#3.0.0, lodash._reinterpolate#3.0.0, lodash._reescape#3.0.0, replace-ext#0.0.1, minimist#1.1.1, vinyl#0.4.6, chalk#1.0.0, lodash.template#3.6.0, multipipe#0.1.2, dateformat#1.0.11)
└── uglify-js#2.4.19 (uglify-to-browserify#1.0.2, async#0.2.10, source-map#0.1.34, yargs#3.5.4)
0.81s$ npm test
> pourover#1.1.0 test /home/travis/build/hhsnopek/pourover
> mocha
module.js:338
throw err;
^
Error: Cannot find module 'process'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/travis/build/hhsnopek/pourover/test/test.js:2:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at /home/travis/build/hhsnopek/pourover/node_modules/mocha/lib/mocha.js:192:27
at Array.forEach (native)
at Mocha.loadFiles (/home/travis/build/hhsnopek/pourover/node_modules/mocha/lib/mocha.js:189:14)
at Mocha.run (/home/travis/build/hhsnopek/pourover/node_modules/mocha/lib/mocha.js:422:31)
at Object.<anonymous> (/home/travis/build/hhsnopek/pourover/node_modules/mocha/bin/_mocha:398:16)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Test failed. See above for more details.
The command "npm test" exited with 1.
Done. Your build exited with 1.

Remove var process = require('process'); as process is already accessible without requiring it. This removes the require and solves the problem.

Related

Karma not running in Jenkins CI, Cannot find module 'karma-jasmine'

I'm setting up an Angular 4 SPA with automatic testing in Jenkins CI. The SPA is part of a larger, Maven-managed project, so the build is also Maven-managed. So far I've:
Installed the NodeJS plugin on Jenkins, using install from nodejs.org with version 8.6.0
Configured "Global npm packages to install" = "karma-cli phantomjs-prebuilt jasmine-core karma-jasmine karma-phantomjs-launcher karma-junit-reporter karma-coverage"
Added the "maven-karma-plugin" in pom.xml with browsers=PhantomJS / singleRun=true / reporters=dots,junit
Enabled "Provide Node & npm bin/ folder to PATH" on the Jenkins job configuration
The build process starts up quite ok, but eventually I get:
[INFO] --- maven-karma-plugin:1.6:start (default) # webclient ---
[INFO] Executing Karma Test Suite ...
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/bin/karma start /var/lib/jenkins/workspace/funnel_build/webclient/karma.conf.js --browsers PhantomJS --reporters dots,junit --single-run
07 10 2017 17:07:52.801:ERROR [config]: Error in config file!
{ Error: Cannot find module 'karma-jasmine'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at module.exports (/var/lib/jenkins/workspace/funnel_build/webclient/karma.conf.js:9:7)
at Object.parseConfig (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/lib/node_modules/karma/lib/config.js:410:5)
The npm install at the very beginning of the build logs:
$ /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/bin/npm install -g karma-cli phantomjs-prebuilt jasmine-core karma-jasmine karma-phantomjs-launcher karma-junit-reporter karma-coverage
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/bin/karma -> /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/lib/node_modules/karma-cli/bin/karma
/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/bin/phantomjs -> /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/lib/node_modules/phantomjs-prebuilt/bin/phantomjs
> phantomjs-prebuilt#2.1.15 install /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/lib/node_modules/phantomjs-prebuilt
> node install.js
Considering PhantomJS found at /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/bin/phantomjs
Looks like an `npm install -g`
Could not link global install, skipping...
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Verified checksum of previously downloaded file
Extracting tar contents (via spawned process)
Removing /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/lib/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1507388835905/phantomjs-2.1.1-linux-x86_64 -> /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/lib/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node.js_8.6.0/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
npm WARN karma-jasmine#1.1.0 requires a peer of karma#* but none was installed.
npm WARN karma-junit-reporter#1.2.0 requires a peer of karma#>=0.9 but none was installed.
npm WARN karma-phantomjs-launcher#1.0.4 requires a peer of karma#>=0.9 but none was installed.
+ karma-phantomjs-launcher#1.0.4
+ karma-coverage#1.1.1
+ karma-jasmine#1.1.0
+ karma-cli#1.0.1
+ karma-junit-reporter#1.2.0
+ jasmine-core#2.8.0
+ phantomjs-prebuilt#2.1.15
updated 7 packages in 10.553s
(The reason the package 'karma' is currently not on the list is that I read somewhere that karma-cli should be used in place of karma. Adding the 'karma' package doesn't change anything, however.)
Any idea why that "Cannot find module 'karma-jasmine'" pops up? In (2) you'll see that the karma-jasmine package is listed, I find it on the server, but still it's not found by the NodeJS plugin.
Thanks, Simon
I managed to get it to work by running "npm install" as part of the build process, and then run everything on local npm packages.
The entire setup is described here: https://funneltravel.wordpress.com/2017/10/16/running-karma-with-maven-on-jenkins-ci/

unable to install cordova in mac os X 10.10.5

when i install Cordova using command line in mac os X10.10.5 then i get the error!!!
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated
into npm and is now out of date with respect to npm
/Users/winaimmac/bin/cordova ->
/Users/winaimmac/lib/node_modules/cordova/bin/cordova cordova#6.0.0
/Users/winaimmac/lib/node_modules/cordova ├── underscore#1.7.0 ├──
q#1.0.1 ├── ansi#0.3.1 ├── nopt#3.0.1 (abbrev#1.0.7) ├──
update-notifier#0.5.0 (is-npm#1.0.0, semver-diff#2.1.0,
string-length#1.0.1, chalk#1.1.1, repeating#1.1.3,
latest-version#1.0.1, configstore#1.4.0) └── cordova-lib#6.0.0
(valid-identifier#0.0.1, opener#1.4.1, properties-parser#0.2.3,
semver#4.3.6, nopt#3.0.6, dep-graph#1.1.0, shelljs#0.3.0, xcode#0.8.0,
tar#1.0.2, aliasify#1.9.0, init-package-json#1.9.3,
cordova-app-hello-world#3.10.0, npm#2.14.17, request#2.47.0,
cordova-serve#1.0.0, npmconf#2.1.2, cordova-js#4.1.3)
how to fix it
help me
thanks

can not create yeoman project on my mac running OS X Yosemite 10.11.2 (angular-generator)

can not create yeoman project on my mac running OS X Yosemite 10.11.2 (angular-generator)
npm WARN EPEERINVALID gulp-karma#0.0.4 requires a peer of karma#>=0.10
<=0.13 but none was installed.
[10:29:09] Using gulpfile ~/Workspace/yeoman/mytodo/gulpfile.js
[10:29:09] Task 'wiredep' is not in your gulpfile
[10:29:09] Please check the documentation for proper gulpfile formatting
? Overwrite package.json? overwrite this and all others
force package.json
create .travis.yml
mytodo# /Users/alan/Workspace/yeoman/mytodo
├── UNMET PEER DEPENDENCY grunt#0.4.x
├─┬ grunt-karma#0.12.1
│ └── lodash#3.10.1
├─┬ gulp-imagemin#2.4.0
│ └─┬ imagemin#4.0.0
│ └─┬ imagemin-svgo#4.2.0
│ └─┬ svgo#0.6.1
│ └─┬ js-yaml#3.4.6
│ └─┬ argparse#1.0.3
│ └── lodash#3.10.1
├─┬ gulp-jshint#1.12.0
│ └── lodash#3.10.1
├─┬ gulp-sass#2.1.1
│ └─┬ node-sass#3.4.2
│ └─┬ sass-graph#2.0.1
│ └── lodash#3.10.1
├── UNMET PEER DEPENDENCY jasmine-core#*
├── UNMET PEER DEPENDENCY karma#^0.13.0 || >= 0.14.0-rc.0
├── karma-jasmine#0.3.6
├─┬ karma-phantomjs-launcher#0.2.1
│ └── lodash#3.10.1
└── UNMET PEER DEPENDENCY phantomjs#>=1.9
npm WARN EPEERINVALID gulp-karma#0.0.4 requires a peer of karma#>=0.10 <=0.13 but none was installed.
npm WARN EPEERINVALID karma-jasmine#0.3.6 requires a peer of jasmine-core#* but none was installed.
npm WARN EPEERINVALID grunt-karma#0.12.1 requires a peer of grunt#0.4.x but none was installed.
npm WARN EPEERINVALID grunt-karma#0.12.1 requires a peer of karma#^0.13.0 || >= 0.14.0-rc.0 but none was installed.
npm WARN EPEERINVALID karma-phantomjs-launcher#0.2.1 requires a peer of karma#>=0.9 but none was installed.
npm WARN EPEERINVALID karma-phantomjs-launcher#0.2.1 requires a peer of phantomjs#>=1.9 but none was installed.
use yeoman angular-generator,when I run 'gulp serve',the console shows:
Uncaught ReferenceError: angular is not defined!
I ran into problems when installing Yeoman on my mac as well. For me updating node/npm fixed the issues.

OSX Yosemity Webstorm npm install -g iOS-sim

So I have been trying for the last 3 hours to get web storm set up on my new mac. I'm having trouble getting the iOS-sim set up and it just gives me an error
Failed at the ios-sim#3.1.1 preinstall script 'rake build'.
npm ERR! This is most likely a problem with the ios-sim package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rake build
npm ERR! You can get their info via:
npm ERR! npm owner ls ios-sim
npm ERR! There is likely additional logging output above.
I've tried every google link out there and I still am at a loss.
Any thoughts?
Here is an error message I get when installing phonegap
Brentons-MBP:~ brentonpierce$ sudo npm install -g phonegap
Password:
npm WARN engine npm#1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.3","npm":"2.7.5"})
npm WARN engine cordova-js#3.9.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.3","npm":"2.7.5"})
npm WARN engine xmlbuilder#2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.3","npm":"2.7.5"})
> ws#0.4.31 install /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/socket.io/node_modules/engine.io/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0)
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
npm WARN installMany normalize-package-data was bundled with npm#1.3.4, but bundled package wasn't found in unpacked tree
> ws#0.4.31 install /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0)
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o /usr/local/bin/phonegap -> /usr/local/lib/node_modules/phonegap/bin/phonegap.js
phonegap#5.0.0-0.28.0 /usr/local/lib/node_modules/phonegap
├── pluralize#0.0.4
├── colors#0.6.0-1
├── semver#1.1.0
├── minimist#0.1.0
├── qrcode-terminal#0.9.4
├── shelljs#0.1.4
├── phonegap-build#0.9.1 (colors#0.6.2, qrcode-terminal#0.8.0, shelljs#0.0.9, optimist#0.3.7, phonegap-build-api#0.3.3)
├── prompt#0.2.11 (revalidator#0.1.8, pkginfo#0.3.0, read#1.0.5, winston#0.6.2, utile#0.2.1)
├── cordova#5.0.0 (underscore#1.7.0, q#1.0.1, nopt#3.0.1, cordova-lib#5.0.0)
└── connect-phonegap#0.16.0 (home-dir#0.1.2, connect-inject#0.3.2, ip#0.3.1, walkdir#0.0.8, request-progress#0.3.1, shelljs#0.2.6, http-proxy#1.8.1, request#2.33.0, tar#0.1.19, node-static#0.7.0, gaze#0.4.3, localtunnel#1.3.0, archiver#0.14.3, useragent#2.0.8, connect#2.12.0, socket.io#1.0.4)
Xcode 6 is required for ios-sim to work.
Please check that you have it installed.
If it is installed, run it at least once.

Cordova 3.1.0 : Command Line interface not working

Cordova 3.1.0 : Command Line interface not working . I installed node.js and used th following command
$ sudo npm install -g cordova
after installation am getting following output :
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
cordova#3.1.0-0.2.0 /usr/local/lib/node_modules/cordova
├── ncallbacks#1.0.0
├── semver#1.1.0
├── colors#0.6.2
├── open#0.0.3
├── mime#1.2.11
├── q#0.9.7
├── shelljs#0.1.2
├── follow-redirects#0.0.3 (underscore#1.5.2)
├── optimist#0.6.0 (wordwrap#0.0.2, minimist#0.0.5)
├── xcode#0.5.1 (node-uuid#1.3.3, pegjs#0.6.2)
├── glob#3.2.6 (inherits#2.0.1, minimatch#0.2.12)
├── tar#0.1.18 (inherits#2.0.1, block-stream#0.0.7, fstream#0.1.24)
├── elementtree#0.1.5 (sax#0.3.5)
├── prompt#0.2.7 (revalidator#0.1.5, pkginfo#0.3.0, read#1.0.5, utile#0.1.7, winston#0.6.2)
├── express#3.0.0 (methods#0.0.1, fresh#0.1.0, range-parser#0.0.4, debug#0.7.3, cookie#0.0.4, crc#0.2.0, commander#0.6.1, mkdirp#0.3.3, send#0.1.0, connect#2.6.0)
├── request#2.22.0 (json-stringify-safe#4.0.0, aws-sign#0.3.0, forever-agent#0.5.0, qs#0.6.5, tunnel-agent#0.3.0, oauth-sign#0.3.0, cookie-jar#0.3.0, node-uuid#1.4.1, http-signature#0.10.0, hawk#0.13.1, form-data#0.0.8)
├── npm#1.3.13
├── plist#0.4.3 (xmlbuilder#0.4.2, xmldom#0.1.16)
├── ripple-emulator#0.9.18 (connect-xcors#0.5.2, colors#0.6.0-1, accounting#0.3.2, request#2.12.0, moment#1.7.2, express#3.1.0)
└── plugman#0.14.0 (ncallbacks#1.1.0, osenv#0.0.3, bplist-parser#0.0.4, semver#2.0.11, underscore#1.4.4, nopt#1.0.10, dep-graph#1.1.0, xcode#0.6.1, rc#0.3.0, tar.gz#0.1.1, npm#1.3.4)
Not able to create add platform or create a project .
while using this command
$ cordova create hello com.example.hello HelloWorld
am getting the following error.
-bash: cordova: command not found
am using MAC OS
Did your PATH system variable include /usr/local/bin/?
You need to add the NPM directory into your PATH, so that you can run "cordova" from anywhere and it will get picked up.
For example, I had to add
;C:\Users\MBillau\AppData\Roaming\npm
which is where my npm folder is.

Resources