I already installed gulp -g, and when I use "gulp tsc" I receive this message from node. Anyone can help
Error: Cannot find module 'sparkles'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\mateus.leal\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\glogg\index
.js:5:16)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
it says it is missing sparkles package , you should install it by running
npm install sparkles
Related
I am using json npm package to update package.json file.
Using following commands
json -f package.json -I -e this.dependencies.data-version=\"1.0.0.1\"
Getting following error message
undefined:2
this.dependencies.'data-version'="1.0.0.1"
^^^^^^^^^^
SyntaxError: Unexpected string
at new Function (<anonymous>)
at main (C:\Users\SEUser2\AppData\Roaming\npm\node_modules\json\lib\json.js:
1289:27)
at Object.<anonymous> (C:\Users\SEUser2\AppData\Roaming\npm\node_modules\jso
n\lib\json.js:1683:5)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
I observer that if field name contains '-' character if creates issue.
How to run above command escaping '-' character ?
The best way I've found to update outdated packages in the package.json is to use: npm-check
npm-check -u
Which will let you interactively update the packages you want to update.
Can you try using this.dependencies['data=version'] instead
I have an error when I try to start my code with node (npm start).
I have MySQL, XAMPP and node installed.
The error is as followed:
webpack building...
Server started on port 3000
/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'root'#'localhost' (using password: NO)
at Handshake.Sequence._packetToError (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)
at Handshake.ErrorPacket (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/sequences/Handshake.js:103:18)
at Protocol._parsePacket (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/Protocol.js:279:23)
at Parser.write (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/Connection.js:103:28)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at addChunk (_stream_readable.js:266:12)
at readableAddChunk (_stream_readable.js:253:11)
at Socket.Readable.push (_stream_readable.js:211:10)
at TCP.onread (net.js:585:20)
--------------------
at Protocol._enqueue (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/Protocol.js:145:48)
at Protocol.handshake (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/protocol/Protocol.js:52:23)
at PoolConnection.connect (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/Connection.js:130:18)
at Pool.getConnection (/Users/RaphaelleG/Documents/SOEN343/node_modules/mysql/lib/Pool.js:48:16)
at Object.<anonymous> (/Users/RaphaelleG/Documents/SOEN343/server/config/database.js:14:6)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/RaphaelleG/Documents/SOEN343/server/app.js:18:16)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tecmarket#0.1.0 start: `node ./server/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tecmarket#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/RaphaelleG/.npm/_logs/2017-09-22T03_16_49_509Z-debug.log
Please can you help me resolve this error?
I've globally installed an NPM module like so:
sudo npm install -g contentful-space-sync
The install flags a warning, but not sure if this is an issue:
npm WARN peerDependencies The peer dependency stream-browserify#* included from bl will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
contentful-space-sync#3.0.0 node_modules/contentful-space-sync
├── bluebird#3.1.1
├── yargs#3.31.0 (camelcase#2.0.1, window-size#0.1.4, y18n#3.2.0, decamelize#1.1.2, string-width#1.0.1, os-locale#1.4.0, cliui#3.1.0)
├── npmlog#2.0.0 (ansi#0.3.1, gauge#1.2.4, are-we-there-yet#1.0.5)
├── contentful-batch-libs#2.0.0 (contentful-management#0.7.1, contentful#1.2.1)
└── lodash#3.10.1
Install seems to work. To run the module, it's easiest to create a config file for it, which I did:
{
"sourceSpace": "xxxxxxxx",
"destinationSpace": "xxxxxxxx",
"sourceDeliveryToken": "xxxxxxxx",
"managementToken": "xxxxxxxx"
}
Now I run the module like this:
contentful-space-sync --config config.json
But I get the following error:
module.js:339
throw err;
^
Error: Cannot find module 'babel-register'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/usr/local/lib/node_modules/contentful-space-sync/index.js:5:5)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/usr/local/lib/node_modules/contentful-space-sync/bin/space-sync:4:20)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
I've never had something like this for a globally installed module. Why can't it find a module it needs and how do I fix this?
this was a bad release. We're aware of the issue and working on a fix.
For now the best thing is to use 2.1.9. You can install it with npm install -g contentful-space-sync#2.1.9
Having trouble running Gulp, and not quite sure what the issue is here. I've Googled the error, yet all forums that have come up haven't fixed my issue.
Here's the relevant install info:
npm -v
2.11.3
node -v
v0.12.7
node -p process.versions
{ http_parser: '2.3',
node: '0.12.7',
v8: '3.28.71.19',
uv: '1.6.1',
zlib: '1.2.8',
modules: '14',
openssl: '1.0.1p' }
node -p process.platform
darwin
node -p process.arch
x64
And the error I'm getting when executing Gulp:
Error: `libsass` bindings not found in /PATH/TO/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node. Try reinstalling `node-sass`?
at Object.sass.getBinaryPath (/PATH/TO/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:148:11)
at Object.<anonymous> (/PATH/TO/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:16:36)
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 Object.<anonymous> (/PATH/TO/node_modules/gulp-sass/index.js:163:21)
at Module._compile (module.js:460:26)
Kind of lost on what to do next...
Try running npm rebuild node-sass after npm install node-sass.
I installed gulp on my machine, but when i try to compile my project i have this error:
Error: Cannot find module 'del'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Applications/MAMP/htdocs/project/gulpfile.js:6:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I dont understand the error and i dont know how solve.
Someone can help me?
Thanks
This error message indicates that the module 'del' cannot be found. It seems that the 'del' package is not installed or not properly configured in your project.
Try installing the 'del' package by running the following command in your terminal:
npm install del --save-dev
If you have already installed 'del' package and still getting this error, try uninstalling and then reinstalling it.
npm uninstall del
npm install del --save-dev
Also make sure that you have the latest version of npm and node installed on your machine.
npm install -g npm
After installing or reinstalling 'del' package, you can try running the gulp command again and see if the error persists.